summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-05 20:41:11 +0200
committerGitHub <noreply@github.com>2023-08-05 20:41:11 +0200
commite66126e5f031aab947ae70a27b447d1dd18f6d90 (patch)
tree3a0bf88989e45bc60319b49707641334a512744e
parentc211d2c07e2fb3848c8a045df4acb9fead01b93f (diff)
parentb2f0bea57751d00edd227e3bd2011efe4d8e2931 (diff)
downloadvyos-1x-e66126e5f031aab947ae70a27b447d1dd18f6d90.tar.gz
vyos-1x-e66126e5f031aab947ae70a27b447d1dd18f6d90.zip
Merge pull request #2133 from sever-sever/T5266
T5266: QoS limit could be not configured for queue-type priority
-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':