summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-13 21:23:11 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-13 21:23:11 +0100
commit894a5d6daee5f785834a2f360d66eb9b8e112465 (patch)
tree6177f6c442000c4faddbf020c928de821d1ef240
parent41b9bea023c4fe633e12a7eaeef128bb91c19c75 (diff)
downloadvyos-1x-894a5d6daee5f785834a2f360d66eb9b8e112465.tar.gz
vyos-1x-894a5d6daee5f785834a2f360d66eb9b8e112465.zip
tunnel: T3406: support ipv6 encaplimit "none" which disables the fiel
-rw-r--r--interface-definitions/interfaces-tunnel.xml.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/interface-definitions/interfaces-tunnel.xml.in b/interface-definitions/interfaces-tunnel.xml.in
index 047e06b86..c169d877d 100644
--- a/interface-definitions/interfaces-tunnel.xml.in
+++ b/interface-definitions/interfaces-tunnel.xml.in
@@ -168,15 +168,23 @@
<children>
<leafNode name="encaplimit">
<properties>
- <help>Encaplimit field</help>
+ <help>Set fixed encapsulation limit</help>
+ <completionHelp>
+ <list>none</list>
+ </completionHelp>
<valueHelp>
<format>0-255</format>
<description>Encaplimit (default: 4)</description>
</valueHelp>
+ <valueHelp>
+ <format>none</format>
+ <description>Encaplimit disabled</description>
+ </valueHelp>
<constraint>
+ <regex>^(none)$</regex>
<validator name="numeric" argument="--range 0-255"/>
</constraint>
- <constraintErrorMessage>key must be between 0-255</constraintErrorMessage>
+ <constraintErrorMessage>Tunnel encaplimit must be 0-255 or none</constraintErrorMessage>
</properties>
<defaultValue>4</defaultValue>
</leafNode>