diff options
author | Daniil Baturin <daniil@vyos.io> | 2025-05-27 14:53:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-27 14:53:54 +0100 |
commit | eb07e3131ae3ea6a58ac85340a5ce049ce3e6eb2 (patch) | |
tree | e0d3e70141f8b8cbfe6cbd516358790cce327010 /src | |
parent | 1dc6a82211635c64852cdd50c656fe1ab3013c0b (diff) | |
parent | e5b613191a60f0de4a231d35aa48e3f0e90a05ab (diff) | |
download | vyos-1x-eb07e3131ae3ea6a58ac85340a5ce049ce3e6eb2.tar.gz vyos-1x-eb07e3131ae3ea6a58ac85340a5ce049ce3e6eb2.zip |
Merge pull request #4496 from l0crian1/add-root-bpdu-guard
Bridge: T7430: Add BPDU Guard and Root Guard support
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces_bridge.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces_bridge.py b/src/conf_mode/interfaces_bridge.py index 95dcc543e..c14e6a599 100755 --- a/src/conf_mode/interfaces_bridge.py +++ b/src/conf_mode/interfaces_bridge.py @@ -167,6 +167,9 @@ def verify(bridge): if 'has_vrf' in interface_config: raise ConfigError(error_msg + 'it has a VRF assigned!') + if 'bpdu_guard' in interface_config and 'root_guard' in interface_config: + raise ConfigError(error_msg + 'bpdu-guard and root-guard cannot be configured at the same time!') + if 'enable_vlan' in bridge: if 'has_vlan' in interface_config: raise ConfigError(error_msg + 'it has VLAN subinterface(s) assigned!') |