summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-07-06 12:29:17 +0100
committerGitHub <noreply@github.com>2023-07-06 12:29:17 +0100
commit0586941f7bc3bcd55721d7c44164ef7a2de9423d (patch)
treec48b3e8fea4c338fa6711fe26cb535a83fefd375
parente8ff7aa564b03c6338b2c053f3c24a08fd2cf323 (diff)
parent7d57dfe2f3cd2062a368a9074fd369abdd4a0c41 (diff)
downloadvyos-1x-0586941f7bc3bcd55721d7c44164ef7a2de9423d.tar.gz
vyos-1x-0586941f7bc3bcd55721d7c44164ef7a2de9423d.zip
Merge pull request #2054 from JonSanMan/T5314-PR
T5314: Fix default QOS classes not getting qdisc
-rw-r--r--python/vyos/qos/base.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/python/vyos/qos/base.py b/python/vyos/qos/base.py
index 717e3c214..3983b1bc0 100644
--- a/python/vyos/qos/base.py
+++ b/python/vyos/qos/base.py
@@ -331,13 +331,15 @@ class QoSBase:
# burst = cls_config['burst']
# filter_cmd += f' burst {burst}'
+ if 'default' in config:
+ default_cls_id = 1
+ if 'class' in config:
+ class_id_max = self._get_class_max_id(config)
+ default_cls_id = int(class_id_max) +1
+ self._build_base_qdisc(config['default'], default_cls_id)
+
if self.qostype == 'limiter':
if 'default' in config:
- if 'class' in config:
- class_id_max = self._get_class_max_id(config)
- default_cls_id = int(class_id_max) + 1
- self._build_base_qdisc(config['default'], default_cls_id)
-
filter_cmd = f'tc filter replace dev {self._interface} parent {self._parent:x}: '
filter_cmd += 'prio 255 protocol all basic'