summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-19 22:40:01 +0100
committerGitHub <noreply@github.com>2024-03-19 22:40:01 +0100
commitce5fca47e31bdcc4d4cb3c12a3bc4da697c72a3c (patch)
tree6a4dd91c50a44a60be252ec0fa936875877f12ca /python
parente59de1ceb25565e0a8fc9206ab71a541cd6f5f55 (diff)
parent84bbcdf5b7980f701aba6e158a2be4a05e7076d9 (diff)
downloadvyos-1x-ce5fca47e31bdcc4d4cb3c12a3bc4da697c72a3c.tar.gz
vyos-1x-ce5fca47e31bdcc4d4cb3c12a3bc4da697c72a3c.zip
Merge pull request #3131 from HollyGurza/T1871
qos: T1871: add MTU option when configure limiter traffic-policy
Diffstat (limited to 'python')
-rw-r--r--python/vyos/qos/base.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/vyos/qos/base.py b/python/vyos/qos/base.py
index 47318122b..c8e881ee2 100644
--- a/python/vyos/qos/base.py
+++ b/python/vyos/qos/base.py
@@ -324,6 +324,11 @@ class QoSBase:
if 'burst' in cls_config:
burst = cls_config['burst']
filter_cmd += f' burst {burst}'
+
+ if 'mtu' in cls_config:
+ mtu = cls_config['mtu']
+ filter_cmd += f' mtu {mtu}'
+
cls = int(cls)
filter_cmd += f' flowid {self._parent:x}:{cls:x}'
self._cmd(filter_cmd)
@@ -387,6 +392,10 @@ class QoSBase:
burst = config['default']['burst']
filter_cmd += f' burst {burst}'
+ if 'mtu' in config['default']:
+ mtu = config['default']['mtu']
+ filter_cmd += f' mtu {mtu}'
+
if 'class' in config:
filter_cmd += f' flowid {self._parent:x}:{default_cls_id:x}'