summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-03-20 08:22:18 +0200
committerGitHub <noreply@github.com>2024-03-20 08:22:18 +0200
commit025fbc014a89714e903a241551f9e97f877b2f4b (patch)
tree3f9048d755d04195e50e771069c49256effd7534 /interface-definitions
parent8be1318b9ed6a8d18e0d854f9d3d4751b3bacacc (diff)
parentf37cc9e15fe0ef4e3e88f5839b0fb23bb72dc7e5 (diff)
downloadvyos-1x-025fbc014a89714e903a241551f9e97f877b2f4b.tar.gz
vyos-1x-025fbc014a89714e903a241551f9e97f877b2f4b.zip
Merge pull request #3154 from vyos/mergify/bp/sagitta/pr-3131
qos: T1871: add MTU option when configure limiter traffic-policy (backport #3131)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/qos/mtu.xml.i14
-rw-r--r--interface-definitions/qos.xml.in2
2 files changed, 16 insertions, 0 deletions
diff --git a/interface-definitions/include/qos/mtu.xml.i b/interface-definitions/include/qos/mtu.xml.i
new file mode 100644
index 000000000..161d4c27f
--- /dev/null
+++ b/interface-definitions/include/qos/mtu.xml.i
@@ -0,0 +1,14 @@
+<!-- include start from qos/mtu.xml.i -->
+<leafNode name="mtu">
+ <properties>
+ <help>MTU size for this class</help>
+ <valueHelp>
+ <format>u32:256-65535</format>
+ <description>Bytes</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 256-65535"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- include end -->
diff --git a/interface-definitions/qos.xml.in b/interface-definitions/qos.xml.in
index 31b9a7d21..7618c3027 100644
--- a/interface-definitions/qos.xml.in
+++ b/interface-definitions/qos.xml.in
@@ -278,6 +278,7 @@
#include <include/generic-description.xml.i>
#include <include/qos/bandwidth.xml.i>
#include <include/qos/burst.xml.i>
+ #include <include/qos/mtu.xml.i>
#include <include/qos/class-police-exceed.xml.i>
#include <include/qos/class-match.xml.i>
#include <include/qos/class-priority.xml.i>
@@ -293,6 +294,7 @@
<children>
#include <include/qos/bandwidth.xml.i>
#include <include/qos/burst.xml.i>
+ #include <include/qos/mtu.xml.i>
#include <include/qos/class-police-exceed.xml.i>
</children>
</node>