diff options
author | Christian Breunig <christian@breunig.cc> | 2024-11-15 20:16:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 20:16:59 +0100 |
commit | 89a7e176c1d30a6862976d8b72dc4e7bc0ad5c85 (patch) | |
tree | 389ae388088ee1111dd24b095f36e8e2dfb54bca /src | |
parent | ab470796af602e14af9a6014d0c1b854a6049976 (diff) | |
parent | e6558a535594c1cd25133979f07663cf6958ce75 (diff) | |
download | vyos-1x-89a7e176c1d30a6862976d8b72dc4e7bc0ad5c85.tar.gz vyos-1x-89a7e176c1d30a6862976d8b72dc4e7bc0ad5c85.zip |
Merge pull request #4191 from HollyGurza/T6801
T6801: QoS: Policy rate-control is broken by default
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/qos.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/qos.py b/src/conf_mode/qos.py index 7dfad3180..a4d5f44e7 100755 --- a/src/conf_mode/qos.py +++ b/src/conf_mode/qos.py @@ -255,6 +255,9 @@ def verify(qos): if policy_type in ['priority_queue']: if 'default' not in policy_config: raise ConfigError(f'Policy {policy} misses "default" class!') + if policy_type in ['rate_control']: + if 'bandwidth' not in policy_config: + raise ConfigError('Bandwidth not defined') if 'default' in policy_config: 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!') |