summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-15 19:25:04 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-15 19:50:54 +0100
commit94f886ab0f98207fee57c11e78b94240b1ffff8e (patch)
tree95440de47980bf2520b342b99062891382cd16a3 /interface-definitions
parent2ae13c35257f73a9870ec655d55427ad30d6efdb (diff)
downloadvyos-1x-94f886ab0f98207fee57c11e78b94240b1ffff8e.tar.gz
vyos-1x-94f886ab0f98207fee57c11e78b94240b1ffff8e.zip
tunnel: T3173: path MTU discovery option should be valueless
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/interfaces-tunnel.xml.in48
1 files changed, 23 insertions, 25 deletions
diff --git a/interface-definitions/interfaces-tunnel.xml.in b/interface-definitions/interfaces-tunnel.xml.in
index 273aa648e..39e274840 100644
--- a/interface-definitions/interfaces-tunnel.xml.in
+++ b/interface-definitions/interfaces-tunnel.xml.in
@@ -177,44 +177,42 @@
<help>IPv4 specific tunnel parameters</help>
</properties>
<children>
- <leafNode name="pmtu-discovery">
+ <leafNode name="no-pmtu-discovery">
<properties>
- <help>Path MTU Discovery parameters</help>
- <completionHelp>
- <list>disable enable</list>
- </completionHelp>
- <valueHelp>
- <format>disable</format>
- <description>Disable Path MTU Discovery for tunnel</description>
- </valueHelp>
- <valueHelp>
- <format>enable</format>
- <description>Enable Path MTU Discovery for tunnel (by default)</description>
- </valueHelp>
- <constraint>
- <regex>^(disable|enable)$</regex>
- </constraint>
+ <help>Disable path MTU discovery</help>
+ <valueless/>
</properties>
</leafNode>
<leafNode name="ttl">
<properties>
- <help>Time to live field</help>
+ <help>Time to live (default: 0)</help>
<valueHelp>
- <format>0-255</format>
- <description>Time to live (default 255)</description>
+ <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>255</defaultValue>
+ <defaultValue>0</defaultValue>
</leafNode>
<leafNode name="tos">
<properties>
- <help>Type of Service (TOS)</help>
+ <help>Type of Service (default: 0)</help>
+ <completionHelp>
+ <list>inherit</list>
+ </completionHelp>
+ <valueHelp>
+ <format>0</format>
+ <description>Copy value from original IP header</description>
+ </valueHelp>
<valueHelp>
- <format>0-99</format>
+ <format>1-99</format>
<description>Type of Service (TOS)</description>
</valueHelp>
<constraint>
@@ -222,7 +220,7 @@
</constraint>
<constraintErrorMessage>TOS must be between 0 and 99</constraintErrorMessage>
</properties>
- <defaultValue>inherit</defaultValue>
+ <defaultValue>0</defaultValue>
</leafNode>
<leafNode name="key">
<properties>
@@ -234,7 +232,7 @@
<constraint>
<validator name="numeric" argument="--range 0-4294967295"/>
</constraint>
- <constraintErrorMessage>key must be between 0-4294967295</constraintErrorMessage>
+ <constraintErrorMessage>Key must be in range 0-4294967295</constraintErrorMessage>
</properties>
</leafNode>
</children>
@@ -249,7 +247,7 @@
<help>Encaplimit field</help>
<valueHelp>
<format>0-255</format>
- <description>Encaplimit (default 4)</description>
+ <description>Encaplimit (default: 4)</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-255"/>