Skip to content

Commit

Permalink
interface(stp): raise VerificationError when try to configure on rout…
Browse files Browse the repository at this point in the history
…ing interface
  • Loading branch information
alagoutte committed Nov 5, 2023
1 parent 1209a25 commit 9bc019f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyaoscx/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9bc019f

Please sign in to comment.