Community operations got broken after upgrade to 1.3.6 from 1.2.4

Alexander Shikoff minotaur at crete.org.ua
Fri Mar 2 17:07:29 CET 2012


On Fri, Mar 02, 2012 at 05:46:37PM +0200, Alexander Shikoff wrote:
> Hello!
> 
> After upgrade my Route Servers from 1.2.4 to 1.3.6 community processing
> got broken. Simple function
> 
> function check_community ()
> pair set wrong;
> {
>         #
>         # Delete disallowed communities
>         #
>         wrong = [
>                 # 0:XXXXX - Do not announce to peer   
>                 (0,0)..(0,99),
>                 (0,101)..(0,65535)
>         ];
>         bgp_community.delete(wrong);
> }
> 
> 
> deletes ALL communities (0,*) including (0,100).

The workaround is to use 'filter' instead 'delete' with non-inverted 
pair set:

function check_community ()
pair set c;
{
        c = [
                (0,100)
        ];
        bgp_community.filter(c);
}



But .delete seems to be broken... 

-- 
MINO-RIPE



More information about the Bird-users mailing list