Community lists and ~ operator

Ondrej Zajicek santiago at crfreenet.org
Tue Sep 14 03:00:29 CEST 2010


On Mon, Sep 13, 2010 at 08:50:23PM +0300, Alexander Shikoff wrote:
> Hello,
> 
> I have a problem with implementing following logic:
> 
> if route has any of communities 31210:0 ... 31210:65535 then do nothing
> else add community 31210:31210.
> 
> I tried next control:
> 
>         if ! ( (31210,*) ~ bgp_community ) then { 

Proper syntax is:

	if ! (bgp_community ~ [(31210,*)] ) then { 

Expressions like (123,*) are allowed only in pair sets (enclosed by [ ... ] ).


-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20100914/59a672a7/attachment-0001.asc>


More information about the Bird-users mailing list