configurar_spanning_tree
Configure Spanning Tree Protocol on Cisco switches, selecting modes like Rapid-PVST or MST, and set VLAN priority to designate the root bridge.
Instructions
Configura Spanning Tree Protocol (STP) en un switch Cisco.
Modos disponibles: pvst — Per-VLAN STP (clásico) rapid-pvst — Rapid Per-VLAN STP (recomendado) mst — Multiple Spanning Tree
vlan_id: si se especifica, aplica prioridad solo a esa VLAN
prioridad: 0-61440 en múltiplos de 4096 (menor = root bridge preferido)
Ejemplo root bridge: configurar_spanning_tree('SW1', 'rapid-pvst', 10, 4096)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modo | No | rapid-pvst | |
| switch | Yes | ||
| vlan_id | No | ||
| prioridad | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |