Community lists and ~ operator

Alexander Shikoff minotaur at
Mon Sep 13 19:50:23 CEST 2010


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 { 
        print bgp_community;

but without success:
bird> configure 
Reading configuration from /usr/local/etc/bird.conf
/usr/local/etc/bird.conf, line 61: syntax error

Any ideas? Thanks in advance!


More information about the Bird-users mailing list