summaryrefslogtreecommitdiff
path: root/interface-definitions/include/bgp/afi-label.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-18 11:12:08 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-18 12:57:14 +0200
commit73c0e87109855f9b3372540b4ace03c6fb517c2a (patch)
tree1431a67fbd2df5fc6b8f24025eb0800304ca08c7 /interface-definitions/include/bgp/afi-label.xml.i
parent4058e389f1ca1398ad4fca790839c638a58f7aa3 (diff)
downloadvyos-1x-73c0e87109855f9b3372540b4ace03c6fb517c2a.tar.gz
vyos-1x-73c0e87109855f9b3372540b4ace03c6fb517c2a.zip
bgp: T3759: add l3vpn "label vpn export" commands
Add the following new commands: * set protocols bgp address-family ipv4-unicast label vpn export (auto | 0-1048575) * set protocols bgp address-family ipv6-unicast label vpn export (auto | 0-1048575)
Diffstat (limited to 'interface-definitions/include/bgp/afi-label.xml.i')
-rw-r--r--interface-definitions/include/bgp/afi-label.xml.i36
1 files changed, 36 insertions, 0 deletions
diff --git a/interface-definitions/include/bgp/afi-label.xml.i b/interface-definitions/include/bgp/afi-label.xml.i
new file mode 100644
index 000000000..f8cf57a9c
--- /dev/null
+++ b/interface-definitions/include/bgp/afi-label.xml.i
@@ -0,0 +1,36 @@
+<!-- include start from bgp/afi-label.xml.i -->
+<node name="label">
+ <properties>
+ <help>Label value for VRF</help>
+ </properties>
+ <children>
+ <node name="vpn">
+ <properties>
+ <help>Between current address-family and vpn</help>
+ </properties>
+ <children>
+ <leafNode name="export">
+ <properties>
+ <help>For routes leaked from current address-family to VPN</help>
+ <completionHelp>
+ <list>auto</list>
+ </completionHelp>
+ <valueHelp>
+ <format>auto</format>
+ <description>Automatically assign a label</description>
+ </valueHelp>
+ <valueHelp>
+ <format>u32:0-1048575</format>
+ <description>Label Value</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-1048575"/>
+ <regex>^(auto)$</regex>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+</node>
+<!-- include end -->