From b2f0bea57751d00edd227e3bd2011efe4d8e2931 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Sat, 5 Aug 2023 13:19:46 +0000 Subject: 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 --- python/vyos/qos/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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': -- cgit v1.2.3