diff options
Diffstat (limited to 'anta/tests/stp.py')
-rw-r--r-- | anta/tests/stp.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/anta/tests/stp.py b/anta/tests/stp.py index 5f8b3e8..7cbfc9c 100644 --- a/anta/tests/stp.py +++ b/anta/tests/stp.py @@ -188,6 +188,7 @@ class VerifySTPForwardingPorts(AntaTest): if not (topologies := get_value(command.json_output, "topologies")): not_configured.append(vlan_id) else: + interfaces_not_forwarding = [] for value in topologies.values(): if vlan_id and int(vlan_id) in value["vlans"]: interfaces_not_forwarding = [interface for interface, state in value["interfaces"].items() if state["state"] != "forwarding"] |