v2_set_ports_bulk
Apply one change to many switch ports at once with trunk guard. Select ports explicitly or by access/dead/all selector, and set edgePort before enabling STP to prevent convergence outages.
Instructions
Apply one change to many ports at once, with the same trunk guard as v2_set_port. Select ports explicitly, or by selector: "access" (all non-trunk), "dead" (link down, non-trunk — zero blast radius), "all". Use this with edgePort:true before enabling STP on a switch: it is the step that turns a 30-second convergence outage into no outage at all on the access ports. Each port is written and verified individually. [READ-ONLY MODE: returns the exact payload instead of sending it]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stp | No | ||
| force | No | ||
| ports | No | ||
| dryRun | No | ||
| siteId | No | ||
| disable | No | ||
| edgePort | No | ||
| selector | No | ||
| switchMac | Yes | ||
| bpduProtect | No | ||
| loopProtect | No | ||
| rootProtect | No | ||
| portIsolation | No | ||
| loopbackDetect | No | ||
| broadcastStormKbps | No | Rate in Kbps (64–100000000), not a percentage. 0 disables. | |
| multicastStormKbps | No | ||
| unknownUnicastStormKbps | No |