Deleting unallowed communities
Ondrej Zajicek
santiago at crfreenet.org
Mon Sep 6 19:00:58 CEST 2010
On Mon, Sep 06, 2010 at 07:45:15PM +0300, Alexander Shikoff wrote:
> Hello,
>
> is it possible in filter to delete all communities except ones which
> are stored in pre-defined list?
It is possible to do that, but you have to manually invert the list
of communities. For example instead of a list of allowed communities:
[(123,100), (456,200), (789,300)]
you would use a list of rejected communities:
[(0,0)..(123,99), (123,101)..(456,199), (456,201)..(789,299),
(789,301)..(65535,65535)]
in bgp_community.delete().
--
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/20100906/b788b8f4/attachment-0001.asc>
More information about the Bird-users
mailing list