Strange bgp_ext_community.add behaviour

Ondrej Zajicek santiago at crfreenet.org
Thu Jul 3 12:48:04 CEST 2014


On Thu, Jul 03, 2014 at 12:28:44PM +0300, Alexander Shikov wrote:
> Hello,
> 
> I've met strange bgp_ext_community.add behaviour when adding ext. communities
> to static route:
> 
> 
> protocol static TEST {
>         import filter {
> 		bgp_ext_community.add([ (ro,MyASN,10856), (ro,MyASN,3) ]);
>                 accept;
>         };
>         route 185.61.244.0/22 blackhole;
> }
> - does not work. Route is filtered:
> Jul  2 17:26:22 gate bird: TEST: State changed to down
> Jul  2 17:26:22 gate bird: TEST: Starting
> Jul  2 17:26:22 gate bird: TEST: Connected to table master
> Jul  2 17:26:22 gate bird: TEST: State changed to feed
> Jul  2 17:26:22 gate bird: TEST > filtered out 185.61.244.0/22 blackhole
> 
> bgp_ext_community.add( [ (ro,MyASN,10856) ] );
> also don't work

> 
> User's guide says that .add argument may be a (e)clist, thus this issue seems 
> to be a bug.
> 
> Please, advice! Thanks.

This is expected, as .add argument may be a (e)clist, but not a (E)C set,
and  [ (ro,MyASN,10856), (ro,MyASN,3) ] expression is an EC set.

But it should report error during filter:
bird: filters, line 169: Can't add set

-- 
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/20140703/342a911f/attachment-0001.asc>


More information about the Bird-users mailing list