policy route community-list expanded { <list-num> | <list-name> } rule <rule-num> regex <regex>
Configures a standard community list to define the match criteria for a community list rule, which is based on a regular expression for a community list.
If no regular expression is defined, all packets are considered to match the rule.
- list-num
- The number of a defined extended community list.
A standard community list number ranges from 1 through 99 and an expanded community list number ranges from 100 through 199.
- list-name
- A string identifier for the extended community list.
The string is a set of characters.
- rule-num
- The number of a defined community list rule.
- regex
- A POSIX-style regular expression that represents a BGP community list.
Configuration mode
policy {
route {
community-list {
expanded [list-num | list-name ] {
rule rule-num {
regex regex
}
}
}
}
}
Use the set form of this command to configure a community list to define the match criteria for a community list rule, which is based on a regular expression for a community list.
Packets are matched based on whether the communities listed in the packet match the regular expression that is defined by using this command. Depending on the action that is defined for the rule by using policy route community-list [ standard | expanded ] { list-num | list-name } rule <rule-num> action, matched packets are either permitted or denied.
Use the delete form of this command to delete the regular expression for a rule. If no regular expression is defined, all packets are considered to match the rule.
Use the show form of this command to display the regular expression for a rule.