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 route-map <map-name> rule <rule-num> match as-path <list-name>

Defines a match condition for a route map based on an AS path list.

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

If no AS path match condition is specified, packets are not filtered by AS path.

map-name
The name of a defined route map.
rule-num
The number of a defined route map rule.
list-name
Matches the AS paths in the route with those permitted by the specified AS path list. The AS path list must already be defined.

Configuration mode


policy {
    route-map map-name {
        rule rule-num {
            match {
                as-path list-name
            }
        }
    }
}

Use the set form of this command to define a match condition for a route map policy based on an AS path list.

Packets are matched based on whether the AS path listed in the route match the AS path defined by this command. Depending on the action defined for the rule using policy route route-map map-name rule <rule-num> action, matched packets are either permitted or denied. Based on the forwarding information specified by the set statements in the route map rule, permitted packets are forwarded to their various destinations.

If more than one match condition is defined in a route map rule, the packet must match all conditions to count as a match. If no match condition is defined for the route map rule, all packets are considered to match the rule.

Use the delete form of this command to remove the AS path match condition.

Use the show form of this command to display AS path match condition configuration.