v2_set_port
Configure a switch port's STP, edge-port, BPDU guard, storm-control, isolation, PoE, and loopback detection settings, or enable/disable it. Refuses trunk ports unless forced to prevent uplink shutdowns.
Instructions
Set one switch port: loopback detection, STP on/off, STP edge-port and BPDU/root guard, storm-control thresholds, port isolation, PoE, enable/disable. ⚠ NEVER enable loopback detection on a switch-to-switch trunk — an edge loop could then shut the uplink and partition the network. The tool refuses trunk ports unless force:true. [READ-ONLY MODE: returns the exact payload instead of sending it]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poe | No | ||
| stp | No | ||
| port | Yes | ||
| force | No | ||
| dryRun | No | ||
| siteId | No | ||
| disable | No | ||
| edgePort | No | Mark as an RSTP edge port. An edge port goes straight to forwarding instead of sitting through listening/learning — this is what removes the ~30 s outage when STP is first enabled. Only ever set it on ports facing end devices or APs, NEVER on a switch-to-switch link. | |
| switchMac | Yes | ||
| bpduProtect | No | Shut the port if it receives a BPDU. Pairs with edgePort: an edge port that suddenly hears a bridge is someone plugging in a switch. | |
| loopProtect | No | ||
| rootProtect | No | ||
| portIsolation | No | ||
| loopbackDetect | No | ||
| broadcastStormKbps | No | Broadcast storm threshold as a RATE IN Kbps, not a percentage. Valid 64–100000000; 0 disables. On a gigabit port 1% of line rate is 10000 Kbps. | |
| multicastStormKbps | No | ||
| unknownUnicastStormKbps | No |