diff options
author | Jon Sanchez <jon@jon-s.com> | 2023-06-24 20:30:46 -0700 |
---|---|---|
committer | Jon Sanchez <jon@jon-s.com> | 2023-07-05 08:43:31 -0700 |
commit | 7d57dfe2f3cd2062a368a9074fd369abdd4a0c41 (patch) | |
tree | a75b036751d3137b5e429080d4704775a36096fc /python/vyos/qos | |
parent | 5c1865487c5cf1bfb92ff873a97df4b129c9566f (diff) | |
download | vyos-1x-7d57dfe2f3cd2062a368a9074fd369abdd4a0c41.tar.gz vyos-1x-7d57dfe2f3cd2062a368a9074fd369abdd4a0c41.zip |
T5314: Always run build_base_qdisc for default
Diffstat (limited to 'python/vyos/qos')
-rw-r--r-- | python/vyos/qos/base.py | 12 |
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' |