summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-20 16:35:24 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-20 16:40:35 +0100
commitee23ba04b9eb4003354c5426ab4c77d3103765b2 (patch)
tree63a585f4563400d94b9e78e384de316014bf9760
parentd1b74e3ed68ae608a11ba22f15466f5a3c323e31 (diff)
downloadvyos-1x-ee23ba04b9eb4003354c5426ab4c77d3103765b2.tar.gz
vyos-1x-ee23ba04b9eb4003354c5426ab4c77d3103765b2.zip
sstp: T2007: fix MTU boundaries
-rw-r--r--interface-definitions/include/interface-mtu-68-1500.xml.i13
-rw-r--r--interface-definitions/sstp.xml.in9
2 files changed, 14 insertions, 8 deletions
diff --git a/interface-definitions/include/interface-mtu-68-1500.xml.i b/interface-definitions/include/interface-mtu-68-1500.xml.i
new file mode 100644
index 000000000..81223c332
--- /dev/null
+++ b/interface-definitions/include/interface-mtu-68-1500.xml.i
@@ -0,0 +1,13 @@
+<leafNode name="mtu">
+ <properties>
+ <help>Maximum Transmission Unit (MTU)</help>
+ <valueHelp>
+ <format>68-1500</format>
+ <description>Maximum Transmission Unit</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 68-1500"/>
+ </constraint>
+ <constraintErrorMessage>MTU must be between 68 and 1500</constraintErrorMessage>
+ </properties>
+</leafNode>
diff --git a/interface-definitions/sstp.xml.in b/interface-definitions/sstp.xml.in
index 10b97b833..12a956bd9 100644
--- a/interface-definitions/sstp.xml.in
+++ b/interface-definitions/sstp.xml.in
@@ -349,14 +349,7 @@
</leafNode>
</children>
</node>
- <leafNode name="mtu">
- <properties>
- <help>Maximum Transmission Unit (MTU)</help>
- <constraint>
- <validator name="numeric" argument="--range 128-16384"/>
- </constraint>
- </properties>
- </leafNode>
+ #include <include/interface-mtu-68-1500.xml.i>
</children>
</node>
<node name="ppp-settings">