set_port_state
Enable or disable a switch port and optionally configure its link speed and 802.3x flow control.
Instructions
Enable or disable a switch port, and optionally set its speed and flow control.
Args: port: Port number (1-16). enabled: True to enable the port, False to administratively shut it down. speed: Link speed. One of: AUTO, HALF_10M, FULL_10M, HALF_100M, FULL_100M, FULL_1000M. flow_control: True to enable 802.3x flow control (pause frames).
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": {
"port": "<port>",
"enabled": "<enabled>"
},
"name": "set_port_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| speed | No | AUTO | |
| enabled | Yes | ||
| flow_control | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |