summaryrefslogtreecommitdiff
path: root/interface-definitions/interfaces_vxlan.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-26 12:51:49 +0200
committerGitHub <noreply@github.com>2024-07-26 12:51:49 +0200
commit6b96def0e8760f6ff6a90cae5179600d674bbcbd (patch)
tree75d0be0397a65892640c2d6032658cffaa8abe11 /interface-definitions/interfaces_vxlan.xml.in
parent609f4b9c1bb7f3144a997f76e74e86bef0559b23 (diff)
parentce5460f0380a60eb07f70dfed29d1b011636448a (diff)
downloadvyos-1x-6b96def0e8760f6ff6a90cae5179600d674bbcbd.tar.gz
vyos-1x-6b96def0e8760f6ff6a90cae5179600d674bbcbd.zip
Merge pull request #3881 from vyos/mergify/bp/circinus/pr-3756
vxlan: T6505: Support VXLAN VLAN-VNI range mapping in CLI (backport #3756)
Diffstat (limited to 'interface-definitions/interfaces_vxlan.xml.in')
-rw-r--r--interface-definitions/interfaces_vxlan.xml.in28
1 files changed, 24 insertions, 4 deletions
diff --git a/interface-definitions/interfaces_vxlan.xml.in b/interface-definitions/interfaces_vxlan.xml.in
index 504c08e7e..937acb123 100644
--- a/interface-definitions/interfaces_vxlan.xml.in
+++ b/interface-definitions/interfaces_vxlan.xml.in
@@ -117,15 +117,35 @@
<format>u32:0-4094</format>
<description>Virtual Local Area Network (VLAN) ID</description>
</valueHelp>
+ <valueHelp>
+ <format>&lt;start-end&gt;</format>
+ <description>VLAN IDs range (use '-' as delimiter)</description>
+ </valueHelp>
<constraint>
- <validator name="numeric" argument="--range 0-4094"/>
+ <validator name="numeric" argument="--allow-range --range 0-4094"/>
</constraint>
- <constraintErrorMessage>VLAN ID must be between 0 and 4094</constraintErrorMessage>
+ <constraintErrorMessage>Not a valid VLAN ID or range, VLAN ID must be between 0 and 4094</constraintErrorMessage>
</properties>
<children>
- #include <include/vni.xml.i>
+ <leafNode name="vni">
+ <properties>
+ <help>Virtual Network Identifier</help>
+ <valueHelp>
+ <format>u32:0-16777214</format>
+ <description>VXLAN virtual network identifier</description>
+ </valueHelp>
+ <valueHelp>
+ <format>&lt;start-end&gt;</format>
+ <description>VXLAN virtual network IDs range (use '-' as delimiter)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--allow-range --range 0-16777214"/>
+ </constraint>
+ <constraintErrorMessage>Not a valid VXLAN virtual network ID or range</constraintErrorMessage>
+ </properties>
+ </leafNode>
</children>
- </tagNode>
+ </tagNode>
</children>
</tagNode>
</children>