v2_set_port_profile
Assign a VLAN port profile to a switch port. Blocks trunk changes unless force:true to avoid network partitioning. Read-only mode returns the payload without applying it.
Instructions
Bind a switch port to a VLAN port profile — the real fix for "every port permits every VLAN". Refuses to change an inter-switch trunk unless force:true, because a wrong profile there partitions the network. [READ-ONLY MODE: returns the exact payload instead of sending it]
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": {
"switchMac": "<switchMac>",
"port": "<port>",
"profileName": "<profileName>"
},
"name": "v2_set_port_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| force | No | ||
| dryRun | No | ||
| siteId | No | ||
| switchMac | Yes | ||
| profileName | Yes |