get_stp_status
Retrieves live spanning-tree state per VLAN and port to identify blocked ports, unexpected root bridges, missing edge-port settings, and loop or topology-change issues.
Instructions
Get spanning-tree state (STP 802.1D, RSTP 802.1w, rapid-PVST or MSTP).
FastIron usually runs one 802.1w instance PER VLAN. For each instance returns: bridge priority/address, root bridge priority/address, whether this switch is root, root port, root path cost, timers, topology-change count, and per-port role (ROOT/DESIGNATED/ALTERNATE/BACKUP/DISABLED), state (FORWARDING/ DISCARDING/LEARNING/BLOCKING), cost, priority, edge-port and BPDU guard.
Use this to find blocked ports, unexpected root bridges, missing edge-port config on access ports, or loop/topology-change problems.
Args: vlan: Only this VLAN's instance (per-VLAN STP/RSTP). port_filter: Substring or glob on port name, e.g. "1/1/4*" or "lg1". only_non_forwarding: Only ports NOT in forwarding state.
On FastIron, RESTCONF only has STP configuration; live state comes from
show 802-1w and is merged (source "restconf+ssh"). port_config lists the
per-port edge-port / BPDU-guard / root-guard config for ALL ports (also ones
not currently in an STP instance), handy for spotting access ports
missing edge-port.
Returns {source, enabled_protocols, summary:{root_bridge_for, distinct_root_bridges, blocked_or_discarding_ports, ...}, instances:[...], port_config:{port: {...}}}. Summary covers all instances regardless of filters.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_stp_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vlan | No | ||
| port_filter | No | ||
| only_non_forwarding | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||