Extended Community Match Rule in Policy

Regular expressions are not supported for extended communities. In addition, an extended community match statement matches with a route's extended community if at least one of the extended communities in the match statement matches with the route's extended community. There is no need to for all the extended communities in a single match statement to match with the route's extended community.

For example, suppose the policy file is the following:

entry one {
if {
extended-community "rt:64500:20000 rt: soo:64505:50000
} then {
The above community statement will match with all BGP routes that have at least one of the following extended communities in their extended community attribute:
  • rt:64500:20000
  • rt:
  • soo:64505:50000
  • soo: