diff --git a/pyaoscx/interface.py b/pyaoscx/interface.py index ae6edd6..e819fbf 100644 --- a/pyaoscx/interface.py +++ b/pyaoscx/interface.py @@ -2402,6 +2402,11 @@ def configure_spanning_tree( :return: True if object changed. """ + if hasattr(self, "routing") and self.routing: + raise VerificationError( + "Configuring Spanning Tree is allowed only on bridged ports." + ) + _stp_config = {} if admin_edge_port_enable is not None: