Deleting wildcard bgp communitities in an outbound filter
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. Any hints? Thanks, Peter
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,*)]); 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@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."
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@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."
On Wed, Sep 29, 2010 at 09:44:57PM +0200, Peter Lieven wrote:
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?
Hello See this: http://www.mail-archive.com/bird-users@atrey.karlin.mff.cuni.cz/msg00681.htm... And perhaps also this, but it is unrelated: http://www.mail-archive.com/bird-users@atrey.karlin.mff.cuni.cz/msg00688.htm... -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@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."
Am 29.09.2010 um 22:29 schrieb Ondrej Zajicek:
On Wed, Sep 29, 2010 at 09:44:57PM +0200, Peter Lieven wrote:
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?
Hello
See this:
http://www.mail-archive.com/bird-users@atrey.karlin.mff.cuni.cz/msg00681.htm...
And perhaps also this, but it is unrelated:
http://www.mail-archive.com/bird-users@atrey.karlin.mff.cuni.cz/msg00688.htm...
ok, i guess this will be fixed in 1.2.5? will the crash bug in 1.2.4 ondrej f. mentioned at euro-ix also be fixed in 1.2.5 and is there any scheduled release date? thanks, peter
-- Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@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."
On Wed, Sep 29, 2010 at 10:26:37PM +0200, Peter Lieven wrote:
http://www.mail-archive.com/bird-users@atrey.karlin.mff.cuni.cz/msg00681.htm...
And perhaps also this, but it is unrelated:
http://www.mail-archive.com/bird-users@atrey.karlin.mff.cuni.cz/msg00688.htm...
ok, i guess this will be fixed in 1.2.5? will the crash bug in 1.2.4 ondrej f. mentioned at euro-ix also be fixed in 1.2.5 and is there any scheduled release date?
Not sure which one you mean. There is one (IPv6 specific) already fixed in 1.2.4 and another one (crash during 'show route' [*]) that will be fixed in the next release. All these fixes would be in the next release. I planned to just make a release 1.3.0 soon, but there is some delay in it so perhaps we should make 1.2.5 with just the fixes instead. [*] this bug needs specific conditions to trigger - IPv4 address of your peer must have full 12 digits (in decadic notation). -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@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."
Am 29.09.2010 um 22:58 schrieb Ondrej Zajicek:
On Wed, Sep 29, 2010 at 10:26:37PM +0200, Peter Lieven wrote:
http://www.mail-archive.com/bird-users@atrey.karlin.mff.cuni.cz/msg00681.htm...
And perhaps also this, but it is unrelated:
http://www.mail-archive.com/bird-users@atrey.karlin.mff.cuni.cz/msg00688.htm...
ok, i guess this will be fixed in 1.2.5? will the crash bug in 1.2.4 ondrej f. mentioned at euro-ix also be fixed in 1.2.5 and is there any scheduled release date?
Not sure which one you mean. There is one (IPv6 specific) already fixed in 1.2.4 and another one (crash during 'show route' [*]) that will be fixed in the next release.
yes, i think it was sth with show route. unfortunately ondrej seems not to have upped his slides to the euro-ix pages.
All these fixes would be in the next release. I planned to just make a release 1.3.0 soon, but there is some delay in it so perhaps we should make 1.2.5 with just the fixes instead.
i would appreciate that. i use the deb distribution packages. this would help a lot if i would not have to start compiling own versions just for a bugfix. thanks, peter
[*] this bug needs specific conditions to trigger - IPv4 address of your peer must have full 12 digits (in decadic notation).
-- Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@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."
participants (2)
-
Ondrej Zajicek -
Peter Lieven