Deleting wildcard bgp communitities in an outbound filter

Peter Lieven pli at peering.eu
Wed Sep 29 21:44:57 CEST 2010


Am 03.09.2010 um 16:06 schrieb Ondrej Zajicek:

> On Fri, Sep 03, 2010 at 02:07:43PM +0200, Peter Lieven wrote:
>> Hi,
>> 
>> i would like to hide some traffic engineering communities from bgp advertisements to peers.
>> 
>> I'm using Bird 1.2.4 and from what I have read in the Changelog it should be possible to have something
>> like this in an outbound filter
>> 
>> bgp_community.delete((65000,*));
>> 
>> However, this statement generates a syntax error.
> 
> If i remember it correctly, the syntax is:
> 
> bgp_community.delete([(65000,*)]);


i tried to run this command on bird 1.2.4

bgp_community.delete([(64960,*)]);

but i get the following error:

 filters, line 4676: Can't add/delete non-pair

any hints?

br,
peter

> 
> Because (123,*) is syntax used in 'community sets', delimited like
> other sets by [ .. ], and community delete now accepts community sets.
> Therefore you can also do something like:
> 
> bgp_community.delete( [(65000,*), (65123,1), (65123,10)..(65123,25)] );
> 
> -- 
> 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."




More information about the Bird-users mailing list