From 775dfc795da7b78bf1a6f41562f65b491f12bc91 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: