OpenBGPD: matching multiple BGP communities

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

OpenBGPD: matching multiple BGP communities

Pierky
Hello,

is there a way to have OpenBGPD matching more than one BGP community in
a single statement?

I need to perform some actions only when 2 or more communities are
simultaneously attached to a route.

I've tried the following statements but all failed:

# syntax error
match from any community 1:2 3:4 set community 5:6
match from any community 1:2, 3:4 set community 5:6
match from any community {1:2 3:4} set community 5:6
match from any community {1:2, 3:4} set community 5:6

# "community" already specified
match from any community 1:2 community 3:4 set community 5:6

Thanks

--
Pier Carlo Chiodi
https://pierky.com

bgpd.conf (856 bytes) Download Attachment
signature.asc (836 bytes) Download Attachment