community features request

Oleg lego12239 at yandex.ru
Wed Mar 7 16:18:45 CET 2012


On Wed, Mar 07, 2012 at 03:47:52PM +0200, Alexander Shikov wrote:
> Hello,
> 
> On Wed, Mar 07, 2012 at 03:45:42PM +0400, Oleg wrote:
> >   Hi, list.
> > 
> >   I have the next situation. I want to filter our AS communities in an input
> > filter. So, i made the next function for this:
> > 
> Principles of community processing in your case is difficult for me to 
> understand. I've never used such complicated logic.
> But I hope I have answer at least on the one of your questions:
> > 1. If we have empty clist or empty pair set constructions, we can do
> >      if ( allowed = [] ) then
> >    instead of hack with (0,0) community;
> 
> Try negation:
> if ! (bgp_community ~ [ (0,0) .. (65535,65535) ]) then
> {
> ...
> }

  with bgp_community this solution works, but with allowed variable doesn't.
In syslog i see the next error:

filters, line 49: ~ applied on unknown type pair



More information about the Bird-users mailing list