diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-03-20 08:22:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 08:22:18 +0200 |
commit | 025fbc014a89714e903a241551f9e97f877b2f4b (patch) | |
tree | 3f9048d755d04195e50e771069c49256effd7534 /python/vyos | |
parent | 8be1318b9ed6a8d18e0d854f9d3d4751b3bacacc (diff) | |
parent | f37cc9e15fe0ef4e3e88f5839b0fb23bb72dc7e5 (diff) | |
download | vyos-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 'python/vyos')
-rw-r--r-- | python/vyos/qos/base.py | 9 |
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}' |