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: santi...@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."

Attachment: signature.asc
Description: Digital signature

Reply via email to