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@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@sibptus.tomsk.ru
-- Anton.