summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-01-21 10:51:21 +0200
committerGitHub <noreply@github.com>2024-01-21 10:51:21 +0200
commit7c43d6c370d6635f0064bde23d50875aeae94c4b (patch)
treebc9901f58cceed599f5e4434b290dc34bd2ca45c /src
parent5c29cf757b449d68f06715a58d0b2e65e0a6c636 (diff)
parentf6b6ee636e34f98d336ee53599666afd1f395d78 (diff)
downloadvyos-1x-7c43d6c370d6635f0064bde23d50875aeae94c4b.tar.gz
vyos-1x-7c43d6c370d6635f0064bde23d50875aeae94c4b.zip
Merge pull request #2852 from sever-sever/T5958
T5958: QoS add basic implementation of policy shaper-hfsc
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/qos.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/qos.py b/src/conf_mode/qos.py
index ad4121a49..40d7a6c16 100755
--- a/src/conf_mode/qos.py
+++ b/src/conf_mode/qos.py
@@ -149,7 +149,7 @@ def verify(qos):
if 'class' in policy_config:
for cls, cls_config in policy_config['class'].items():
# bandwidth is not mandatory for priority-queue - that is why this is on the exception list
- if 'bandwidth' not in cls_config and policy_type not in ['priority_queue', 'round_robin']:
+ if 'bandwidth' not in cls_config and policy_type not in ['priority_queue', 'round_robin', 'shaper_hfsc']:
raise ConfigError(f'Bandwidth must be defined for policy "{policy}" class "{cls}"!')
if 'match' in cls_config:
for match, match_config in cls_config['match'].items():
@@ -173,7 +173,7 @@ def verify(qos):
if 'default' not in policy_config:
raise ConfigError(f'Policy {policy} misses "default" class!')
if 'default' in policy_config:
- if 'bandwidth' not in policy_config['default'] and policy_type not in ['priority_queue', 'round_robin']:
+ if 'bandwidth' not in policy_config['default'] and policy_type not in ['priority_queue', 'round_robin', 'shaper_hfsc']:
raise ConfigError('Bandwidth not defined for default traffic!')
# we should check interface ingress/egress configuration after verifying that