summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface-parameters-ttl.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:37:24 +0100
commit577ae00d0c7329bea8102fcf75de82cb188b4fb8 (patch)
tree8ccead51779169995a9e95a29a9df8c2fe672db8 /interface-definitions/include/interface-parameters-ttl.xml.i
parentbdc35ac8ad1d3d88c796aa488749e44bda617b44 (diff)
downloadvyos-1x-577ae00d0c7329bea8102fcf75de82cb188b4fb8.tar.gz
vyos-1x-577ae00d0c7329bea8102fcf75de82cb188b4fb8.zip
xml: tunnel: erspan: 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.
Diffstat (limited to 'interface-definitions/include/interface-parameters-ttl.xml.i')
-rw-r--r--interface-definitions/include/interface-parameters-ttl.xml.i20
1 files changed, 20 insertions, 0 deletions
diff --git a/interface-definitions/include/interface-parameters-ttl.xml.i b/interface-definitions/include/interface-parameters-ttl.xml.i
new file mode 100644
index 000000000..a6a6f163f
--- /dev/null
+++ b/interface-definitions/include/interface-parameters-ttl.xml.i
@@ -0,0 +1,20 @@
+<!-- included start from interface-parameters-ttl.xml.i -->
+<leafNode name="ttl">
+ <properties>
+ <help>Specifies TTL value to use in outgoing packets (default: 0)</help>
+ <valueHelp>
+ <format>0</format>
+ <description>Copy value from original IP header</description>
+ </valueHelp>
+ <valueHelp>
+ <format>1-255</format>
+ <description>Time to Live</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-255"/>
+ </constraint>
+ <constraintErrorMessage>TTL must be between 0 and 255</constraintErrorMessage>
+ </properties>
+ <defaultValue>0</defaultValue>
+</leafNode>
+<!-- included end -->