home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

policy route route-map <map-name> rule <rule-num> set local-preference <local-pref>

Modifies the BGP local-pref attribute in a route.

set policy route route-map map-name rule rule-num set local-preference local-pref
delete policy route route-map map-name rule rule-num set local-preference [ local-pref ]
show policy route route-map map-name rule rule-num set local-preference
map-name
The name of a defined route map.
rule-num
The number of a defined route map rule.
local-pref
The new value for the BGP local preference path attribute. The numbers range from 0 through 4294967295.

Configuration mode


policy {
    route-map map-name {
        rule rule-num {
            set {
                local-preference local-pref 
            }
        }
    }
}

Use the set form of this command to modify the BGP local-pref attribute for packets that traverse a route map. When all the match conditions in the route map rule succeed, the local-pref attribute of the route is modified as specified.

Use the delete form of this command to delete this statement from the route map rule.

Use the show form of this command to display set statement configuration for route maps.