switch_set_port
Enable or disable a single switch port to control link state; requires write confirmation, verifies the change, and refuses protected ports.
Instructions
MUTATES one port's admin state (enable/disable the link). Reads the live page, re-sends the port's current speed and flow control, changes only the state, then verifies. Refuses a protected port (PROTECTED_PORT). Requires both write gates; otherwise no network call. Honours EASYSMART_DRY_RUN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| enabled | Yes | ||
| confirm_write | No | Must be the JSON boolean true to authorise this mutating write. A string such as "true"/"1"/"yes" does NOT count and the write is refused with no network call; re-send with the boolean confirm_write=true after confirming the change with the operator. |