bgp_community.add

Anton Danilov littlesmilingcloud at gmail.com
Tue Feb 16 07:53:04 CET 2016


Hello.

Better move the filter to external filter. In your case this should seem like:

filter export_to_bgp_leopard {
    if (proto = "C21") then {
        bgp_community.add((43859:300));
        bgp_community.add((65535:65281)); #no-export 0xffffff01 - see RFC1997
        accept;
    }
}

protocol bgp leopard {
...
    export filter export_to_bgp_leopard;
....
}

2016-02-16 9:36 GMT+03:00 Victor Sudakov <vas at mpeks.tomsk.su>:
> Dear Colleagues,
>
> If I need to add several communities, what's the filter syntax would be?
>
> I can add the community "43859:300" this way:
>
> protocol bgp leopard {
>         export filter {
>                 if proto = "C21" then {
>                         bgp_community.add((43859,300));
>                         accept;
>                 }
>         };
> }
>
> What if I want to add two communities: "43859:300" and "no-export" ?
>
>
> --
> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
> sip:sudakov at sibptus.tomsk.ru



-- 
Anton.


More information about the Bird-users mailing list