diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-05-05 19:03:04 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-05-05 19:03:04 +0200 |
commit | c57facdcc306fe86b0d1834a38ba9aced5f9c676 (patch) | |
tree | 8d349649ca4b49f22007eea78c98ae751036b185 | |
parent | cd51af8ad1bc8b08230080f737ccbb497ce5b1c0 (diff) | |
download | vyos-documentation-c57facdcc306fe86b0d1834a38ba9aced5f9c676.tar.gz vyos-documentation-c57facdcc306fe86b0d1834a38ba9aced5f9c676.zip |
policy: T4414: Add route-map "as-path prepend last-as x" option
-rw-r--r-- | docs/configexamples/ha.rst | 2 | ||||
-rw-r--r-- | docs/configuration/policy/examples.rst | 2 | ||||
-rw-r--r-- | docs/configuration/policy/route-map.rst | 27 |
3 files changed, 18 insertions, 13 deletions
diff --git a/docs/configexamples/ha.rst b/docs/configexamples/ha.rst index 9780edaa..75b0c60e 100644 --- a/docs/configexamples/ha.rst +++ b/docs/configexamples/ha.rst @@ -563,7 +563,7 @@ it is not 203.0.113.0/24. set policy route-map BGPOUT rule 10000 action 'deny' set policy route-map BGPPREPENDOUT description 'BGP Export Filter' set policy route-map BGPPREPENDOUT rule 10 action 'permit' - set policy route-map BGPPREPENDOUT rule 10 set as-path-prepend '65551 65551 65551' + set policy route-map BGPPREPENDOUT rule 10 set as-path prepend '65551 65551 65551' set policy route-map BGPPREPENDOUT rule 10 match ip address prefix-list 'BGPOUT' set policy route-map BGPPREPENDOUT rule 10000 action 'deny' diff --git a/docs/configuration/policy/examples.rst b/docs/configuration/policy/examples.rst index e4c4b9da..c83e5f64 100644 --- a/docs/configuration/policy/examples.rst +++ b/docs/configuration/policy/examples.rst @@ -8,7 +8,7 @@ BGP Example # Create policy set policy route-map setmet rule 2 action 'permit' - set policy route-map setmet rule 2 set as-path-prepend '2 2 2' + set policy route-map setmet rule 2 set as-path prepend '2 2 2' # Apply policy to BGP set protocols bgp local-as 1 diff --git a/docs/configuration/policy/route-map.rst b/docs/configuration/policy/route-map.rst index 792014bc..8b2a555c 100644 --- a/docs/configuration/policy/route-map.rst +++ b/docs/configuration/policy/route-map.rst @@ -149,15 +149,20 @@ Route Map BGP aggregator attribute: AS number or IP address of an aggregation. -.. cfgcmd:: set policy route-map <text> rule <1-65535> set as-path-exclude +.. cfgcmd:: set policy route-map <text> rule <1-65535> set as-path exclude <text> - Remove ASN(s) from a BGP AS-path attribute. For example "456 64500 45001". + Drop AS-NUMBER from the BGP AS path. -.. cfgcmd:: set policy route-map <text> rule <1-65535> set as-path-prepend +.. cfgcmd:: set policy route-map <text> rule <1-65535> set as-path prepend <text> - Prepend string for a BGP AS-path attribute. For example "64501 64501". + Prepend the given string of AS numbers to the AS_PATH of the BGP path's NLRI. + +.. cfgcmd:: set policy route-map <text> rule <1-65535> set as-path + prepend-last-as <n> + + Prepend the existing last AS number (the leftmost ASN) to the AS_PATH. .. cfgcmd:: set policy route-map <text> rule <1-65535> set atomic-aggregate @@ -211,8 +216,8 @@ Route Map peer-address Set the BGP nexthop address to the address of the peer. For an incoming - route-map this means the ip address of our peer is used. For an - outgoing route-map this means the ip address of our self is used to + route-map this means the ip address of our peer is used. For an + outgoing route-map this means the ip address of our self is used to establish the peering with our neighbor. .. cfgcmd:: set policy route-map <text> rule <1-65535> set ipv6-next-hop @@ -224,17 +229,17 @@ Route Map peer-address Set the BGP nexthop address to the address of the peer. For an incoming - route-map this means the ip address of our peer is used. For an - outgoing route-map this means the ip address of our self is used to + route-map this means the ip address of our peer is used. For an + outgoing route-map this means the ip address of our self is used to establish the peering with our neighbor. - + .. cfgcmd:: set policy route-map <text> rule <1-65535> set ipv6-next-hop prefer-global - + For Incoming and Import Route-maps if we receive a v6 global and v6 LL address for the route, then prefer to use the global address as the nexthop. - + .. cfgcmd:: set policy route-map <text> rule <1-65535> set large-community <text> |