diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-05 20:41:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 20:41:11 +0200 |
commit | e66126e5f031aab947ae70a27b447d1dd18f6d90 (patch) | |
tree | 3a0bf88989e45bc60319b49707641334a512744e | |
parent | c211d2c07e2fb3848c8a045df4acb9fead01b93f (diff) | |
parent | b2f0bea57751d00edd227e3bd2011efe4d8e2931 (diff) | |
download | vyos-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.py | 3 |
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': |