From 7e035196049ff0525b01020ac12689612bdda2cb Mon Sep 17 00:00:00 2001 From: l0crian1 Date: Mon, 5 May 2025 12:04:02 -0400 Subject: 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 --- src/conf_mode/interfaces_bridge.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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!') -- cgit v1.2.3