From 9bc019f7700f14b6b65d35d4943206e5cc2683e6 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 1 Nov 2023 20:07:17 +0000 Subject: [PATCH] interface(stp): raise VerificationError when try to configure on routing interface --- pyaoscx/interface.py | 5 +++++ 1 file changed, 5 insertions(+) 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: