From 7d57dfe2f3cd2062a368a9074fd369abdd4a0c41 Mon Sep 17 00:00:00 2001 From: Jon Sanchez Date: Sat, 24 Jun 2023 20:30:46 -0700 Subject: T5314: Always run build_base_qdisc for default --- python/vyos/qos/base.py | 12 +++++++----- 1 file 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' -- cgit v1.2.3