summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface-parameters-key.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-22 17:35:27 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-22 17:39:36 +0100
commit121ca131f662fe7a09c24f236ffe572eaecf0710 (patch)
tree6dae7065cdf4bdb2aceac073518bceb9d38fb6be /interface-definitions/include/interface-parameters-key.xml.i
parentefc0ecb17de5c6661d092fd990dfdabe9e6b60ef (diff)
downloadvyos-1x-121ca131f662fe7a09c24f236ffe572eaecf0710.tar.gz
vyos-1x-121ca131f662fe7a09c24f236ffe572eaecf0710.zip
xml: tunnel: make individual parameter nodes reusable
VXLAN will get tos, ttl and flowlabel options thus make individual parameter settings reusable by splitting tunnel-parameters-ip.xml.i into individual files. (cherry picked from commit 577ae00d0c7329bea8102fcf75de82cb188b4fb8)
Diffstat (limited to 'interface-definitions/include/interface-parameters-key.xml.i')
-rw-r--r--interface-definitions/include/interface-parameters-key.xml.i15
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-definitions/include/interface-parameters-key.xml.i b/interface-definitions/include/interface-parameters-key.xml.i
new file mode 100644
index 000000000..e918ff0e8
--- /dev/null
+++ b/interface-definitions/include/interface-parameters-key.xml.i
@@ -0,0 +1,15 @@
+<!-- included start from interface-parameters-key.xml.i -->
+<leafNode name="key">
+ <properties>
+ <help>Tunnel key</help>
+ <valueHelp>
+ <format>u32</format>
+ <description>Tunnel key</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-4294967295"/>
+ </constraint>
+ <constraintErrorMessage>key must be between 0-4294967295</constraintErrorMessage>
+ </properties>
+</leafNode>
+<!-- included end -->