summaryrefslogtreecommitdiff
path: root/interface-definitions/policy.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-05 18:44:01 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-05 18:45:17 +0200
commit799b7f511248d68bbbe05e0dfd2aa4849fc32387 (patch)
tree8d5c7ceb2f35c7f74074920e886057dd8b4ced47 /interface-definitions/policy.xml.in
parent0400f96c003ca0472a9e1786b5af20e4207b9e59 (diff)
downloadvyos-1x-799b7f511248d68bbbe05e0dfd2aa4849fc32387.tar.gz
vyos-1x-799b7f511248d68bbbe05e0dfd2aa4849fc32387.zip
policy: T4414: add support for route-map "as-path prepend last-as x"
Diffstat (limited to 'interface-definitions/policy.xml.in')
-rw-r--r--interface-definitions/policy.xml.in57
1 files changed, 41 insertions, 16 deletions
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in
index ddb0159d5..1d5d7dd55 100644
--- a/interface-definitions/policy.xml.in
+++ b/interface-definitions/policy.xml.in
@@ -948,24 +948,49 @@
</leafNode>
</children>
</node>
- <leafNode name="as-path-exclude">
+ <node name="as-path">
<properties>
- <help>Remove ASN(s) from a Border Gateway Protocol (BGP) AS-path attribute</help>
- <valueHelp>
- <format>txt</format>
- <description>BGP AS path exclude string (ex: "456 64500 45001")</description>
- </valueHelp>
- </properties>
- </leafNode>
- <leafNode name="as-path-prepend">
- <properties>
- <help>Prepend string for a Border Gateway Protocol (BGP) AS-path attribute</help>
- <valueHelp>
- <format>txt</format>
- <description>BGP AS path prepend string (ex: "64501 64501")</description>
- </valueHelp>
+ <help>Transform BGP AS_PATH attribute</help>
</properties>
- </leafNode>
+ <children>
+ <leafNode name="exclude">
+ <properties>
+ <help>Remove/exclude from the as-path attribute</help>
+ <valueHelp>
+ <format>u32</format>
+ <description>AS number</description>
+ </valueHelp>
+ <constraint>
+ <validator name="as-number-list"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="prepend">
+ <properties>
+ <help>Prepend to the as-path</help>
+ <valueHelp>
+ <format>u32</format>
+ <description>AS number</description>
+ </valueHelp>
+ <constraint>
+ <validator name="as-number-list"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="prepend-last-as">
+ <properties>
+ <help>Use the last AS-number in the as-path</help>
+ <valueHelp>
+ <format>u32:1-10</format>
+ <description>Number of times to insert</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-10"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
<leafNode name="atomic-aggregate">
<properties>
<help>BGP atomic aggregate attribute</help>