summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-08-05 13:19:46 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-08-05 13:19:46 +0000
commitb2f0bea57751d00edd227e3bd2011efe4d8e2931 (patch)
tree3a0bf88989e45bc60319b49707641334a512744e /python
parentc211d2c07e2fb3848c8a045df4acb9fead01b93f (diff)
downloadvyos-1x-b2f0bea57751d00edd227e3bd2011efe4d8e2931.tar.gz
vyos-1x-b2f0bea57751d00edd227e3bd2011efe4d8e2931.zip
T5266: QoS limit could be not configured for queue-type prioriy
Fix tc qdisc command that use 'limit None' if limit is not in config Limit xx sould be used only if it exists in the config
Diffstat (limited to 'python')
-rw-r--r--python/vyos/qos/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/qos/base.py b/python/vyos/qos/base.py
index 6c5a3d79c..1eac0d1ee 100644
--- a/python/vyos/qos/base.py
+++ b/python/vyos/qos/base.py
@@ -107,7 +107,8 @@ class QoSBase:
queue_limit = dict_search('queue_limit', config)
for ii in range(1, 4):
- tmp = f'tc qdisc replace dev {self._interface} parent {handle:x}:{ii:x} pfifo limit {queue_limit}'
+ tmp = f'tc qdisc replace dev {self._interface} parent {handle:x}:{ii:x} pfifo'
+ if queue_limit: tmp += f' limit {queue_limit}'
self._cmd(tmp)
elif queue_type == 'fair-queue':