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
AS 999 router-id 192.0.2.2 fib-update no log updates nexthop qualify via default group "clients" { neighbor 192.0.2.11 { remote-as 1 transparent-as yes enforce neighbor-as no announce all announce as-4byte yes announce IPv6 none announce IPv4 unicast set nexthop no-modify } } match from any community 1:2 3:4 set community 5:6 # syntax error match from any community 1:2, 3:4 set community 5:6 # syntax error match from any community {1:2 3:4} set community 5:6 # syntax error match from any community {1:2, 3:4} set community 5:6 # syntax error match from any community 1:2 community 3:4 set community 5:6 # "community" already specified
signature.asc
Description: Digital signature