diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-03-21 16:55:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-21 16:55:46 +0000 |
| commit | fe6bfb35f8cbe2b72af0e06a45e3c70d2a417b24 (patch) | |
| tree | 1084b0fde45fd4da0f8592fc573ceaa0ad2c42da /python | |
| parent | fc06cc45148a42171baf9f4ae01da33c3f0df1aa (diff) | |
| parent | 1903920c2b5622ba5b5089859ec66413c2497a3a (diff) | |
| download | vyos-1x-fe6bfb35f8cbe2b72af0e06a45e3c70d2a417b24.tar.gz vyos-1x-fe6bfb35f8cbe2b72af0e06a45e3c70d2a417b24.zip | |
Merge pull request #5073 from c-po/qos-redirect-fix
configverify: T8413: fix issue in duplex shaping (redirect to input interface)
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/configverify.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py index 5ff8dda2c..6e2fd1618 100644 --- a/python/vyos/configverify.py +++ b/python/vyos/configverify.py @@ -180,9 +180,14 @@ def verify_mirror_redirect(config): It makes no sense to mirror traffic back at yourself! """ - if {'mirror', 'redirect'} <= set(config): + if 'mirror' in config and 'redirect' in config: raise ConfigError('Mirror and redirect can not be enabled at the same time!') + if 'mirror' in config and 'qos' in config: + # XXX: support combination of limiting and mirror - this is an artificial + # limitation from the past + raise ConfigError('Can not use QoS together with mirror!') + if 'mirror' in config: for direction, mirror_interface in config['mirror'].items(): if not interface_exists(mirror_interface): @@ -199,11 +204,6 @@ def verify_mirror_redirect(config): raise ConfigError(f'Requested redirect interface "{redirect_ifname}" '\ 'does not exist!') - if 'qos' in config and ('mirror' in config or 'redirect' in config): - # XXX: support combination of limiting and redirect/mirror - this is an - # artificial limitation - raise ConfigError('Can not use QoS together with mirror/redirect!') - def verify_authentication(config): """ Common helper function used by interface implementations to perform |
