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)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"switch": "<switch>"
},
"name": "configurar_spanning_tree"
}
}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 |