summaryrefslogtreecommitdiff
path: root/interface-definitions/include/bgp/afi-vpn-label.xml.i
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-12 21:02:58 +0200
committerChristian Breunig <christian@breunig.cc>2023-07-12 21:16:56 +0200
commit6a44472d0b94ff225499f61ce057ad7709c9fafc (patch)
tree977eb6c433046cf06e21fafc178648e6f8850952 /interface-definitions/include/bgp/afi-vpn-label.xml.i
parent03785776bad26d2c220407db18ceda70fd8448a2 (diff)
downloadvyos-1x-6a44472d0b94ff225499f61ce057ad7709c9fafc.tar.gz
vyos-1x-6a44472d0b94ff225499f61ce057ad7709c9fafc.zip
bgp: T2387: re-use XML building blocks to simplify CLI definition
Diffstat (limited to 'interface-definitions/include/bgp/afi-vpn-label.xml.i')
-rw-r--r--interface-definitions/include/bgp/afi-vpn-label.xml.i14
1 files changed, 14 insertions, 0 deletions
diff --git a/interface-definitions/include/bgp/afi-vpn-label.xml.i b/interface-definitions/include/bgp/afi-vpn-label.xml.i
new file mode 100644
index 000000000..6c7e73d9b
--- /dev/null
+++ b/interface-definitions/include/bgp/afi-vpn-label.xml.i
@@ -0,0 +1,14 @@
+<!-- include start from bgp/afi-vpn-label.xml.i -->
+<leafNode name="label">
+ <properties>
+ <help>MPLS label value assigned to route</help>
+ <valueHelp>
+ <format>u32:0-1048575</format>
+ <description>MPLS label value</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-1048575"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- include end -->