port_security_set
Limit MAC addresses learned on a switch port (1–256) or disable port security; protected ports are refused, and changes run as a dry run by default without saving.
Instructions
Set port security (max learned MACs 1..256) or turn it off (limit omitted). Protected ports are refused. dry_run=true by default. Does not save.
SWITCH_PROTECTED_PORTS is unset or invalid: port writes that check it are refused on every port (fail-closed). Caution ports (SWITCH_CAUTION_PORTS): none.
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>"
},
"name": "port_security_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| limit | No | ||
| dry_run | No | ||
| confirm_caution_port | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |