summaryrefslogtreecommitdiff
path: root/src/conf_mode/qos.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2023-01-05 19:22:27 +0100
committerChristian Poessinger <christian@poessinger.com>2023-01-05 19:22:35 +0100
commite0ad421001d2017301950517a657051f79d8c0df (patch)
treef5d3edd43e875bb2ac9f705d8603d00ab485194e /src/conf_mode/qos.py
parente3454b7ead66b5481aba2cc07670680dad4f4afa (diff)
downloadvyos-1x-e0ad421001d2017301950517a657051f79d8c0df.tar.gz
vyos-1x-e0ad421001d2017301950517a657051f79d8c0df.zip
qos: T4284: priority-queue and round-robin have no default bandwidth
Diffstat (limited to 'src/conf_mode/qos.py')
-rwxr-xr-xsrc/conf_mode/qos.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/qos.py b/src/conf_mode/qos.py
index 1fe3b6aa9..0418e8d82 100755
--- a/src/conf_mode/qos.py
+++ b/src/conf_mode/qos.py
@@ -188,7 +188,7 @@ def verify(qos):
raise ConfigError(f'Policy "{policy}" uses queue-limit "{queue_lim}" < max-threshold "{max_tr}"!')
if 'default' in policy_config:
- if 'bandwidth' not in policy_config['default']:
+ if 'bandwidth' not in policy_config['default'] and policy_type not in ['priority_queue', 'round_robin']:
raise ConfigError('Bandwidth not defined for default traffic!')
# we should check interface ingress/egress configuration after verifying that