Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

policy route extcommunity-list expanded { <list-num> | <list-name> } rule <rule-num> regex <regex>

Configures an extended community list to define the match criteria for a community list rule, which is based on a regular expression for a community list.

set policy route extcommunity-list expanded { list-num | list-name } rule rule-num regex regex
delete policy route extcommunity-list expanded { list-num | list-name } rule rule-num regex
show policy route extcommunity-list expanded { list-num | list-name } rule rule-num regex

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 {
       extcommunity-list {
              expanded [list-num | list-name 
                  {
                     rule rule-num {
                        regex regex                                 
                           }
                   }
              }
         }
       }

Use the set form of this command to configure an expanded 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.

Note: For more information about BGP community-list, see the “BGP Communities” section in Ciena Vyatta Network OS BGP Configuration Guide.