summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-17 08:41:22 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-03-17 17:19:07 +0000
commitc54b1fd63d5a046befe58da299530de12798cf36 (patch)
treea9ed00f2bd703b630da9863f9b7f813b5c8a8b67 /interface-definitions
parentd18d773238efc34026a580fc7f5f79c408ea8cfa (diff)
downloadvyos-1x-c54b1fd63d5a046befe58da299530de12798cf36.tar.gz
vyos-1x-c54b1fd63d5a046befe58da299530de12798cf36.zip
policy: T6129: add route-map option "as-path exclude all"
Remove all AS numbers from the AS_PATH of the BGP path's NLRI. set policy route-map <name> rule <rule> set as-path exclude all (cherry picked from commit 16395c902ff79fcb34019a6d499467488ed45849)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/policy.xml.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in
index 0d82cd3f8..791fa1d87 100644
--- a/interface-definitions/policy.xml.in
+++ b/interface-definitions/policy.xml.in
@@ -1124,12 +1124,20 @@
<leafNode name="exclude">
<properties>
<help>Remove/exclude from the as-path attribute</help>
+ <completionHelp>
+ <list>all</list>
+ </completionHelp>
<valueHelp>
- <format>u32</format>
+ <format>u32:1-4294967295</format>
<description>AS number</description>
</valueHelp>
+ <valueHelp>
+ <format>all</format>
+ <description>Exclude all AS numbers from the as-path</description>
+ </valueHelp>
<constraint>
<validator name="as-number-list"/>
+ <regex>(all)</regex>
</constraint>
</properties>
</leafNode>
@@ -1137,7 +1145,7 @@
<properties>
<help>Prepend to the as-path</help>
<valueHelp>
- <format>u32</format>
+ <format>u32:1-4294967295</format>
<description>AS number</description>
</valueHelp>
<constraint>