community features request

Alexander Shikov a.shikov at dtel-ix.net
Wed Mar 7 14:47:52 CET 2012


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
{
...
}

-- 
Alexander Shikov
Technical Staff, Digital Telecom IX




More information about the Bird-users mailing list