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 as-path-list <list-name> rule <rule-num> regex <regex>

Defines match criteria for an AS path list rule based on a regular expression.

set policy route as-path-list list-name rule rule-num regex regex
delete policy route as-path-list list-name rule rule-num regex
show policy route as-path-list list-name rule rule-num regex

If no regular expression is defined, all packets are considered to match the rule.

list-name
The name of a defined AS path list.
rule-num
The number of a defined AS path list rule.
regex
A POSIX-style regular expression representing an AS path list.

Configuration mode


policy {
    route {
    as-path-list list-name {
        rule rule-num {
            regex regex
            }
        }
    }
}

Use the set form of this command to define the match criteria to be used to determine forwarding policy based on AS paths.

Packets are matched based on whether the AS paths listed in the packet match the regular expression defined using this command. Depending on the action defined for the rule using policy route as-path-list <list-name> rule <rule-num> action, matched packets are either permitted or denied.

Use the delete form of this command to remove the regular expression entry. 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 entry.