diff options
author | l0crian1 <ryan.claridge13@gmail.com> | 2025-05-05 12:04:02 -0400 |
---|---|---|
committer | l0crian1 <ryan.claridge13@gmail.com> | 2025-05-05 15:35:32 -0400 |
commit | 7e035196049ff0525b01020ac12689612bdda2cb (patch) | |
tree | fbd2798eb60880f4480c81c1367b45f7ac328ea6 /src | |
parent | 5d139bb01b1a5a5f19007699545e499524b8cd5f (diff) | |
download | vyos-1x-7e035196049ff0525b01020ac12689612bdda2cb.tar.gz vyos-1x-7e035196049ff0525b01020ac12689612bdda2cb.zip |
Bridge: T7430: Add BPDU Guard and Root Guard support
This will add support for BPDU Guard and Root Guard to the bridge interface.
Verification will come from:
show log spanning-tree
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..956030289 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!') |