set_port_pvid
Assigns a switch port's PVID so untagged ingress traffic is mapped to the specified VLAN; use it when changing a port's native VLAN.
Instructions
Set a port's PVID (native VLAN for untagged ingress traffic).
All untagged frames arriving on this port will be assigned to this VLAN. The port must be an untagged or tagged member of the target VLAN.
Args: port: Port number (1-16). pvid: VLAN ID to assign as the port's native VLAN.
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>",
"pvid": "<pvid>"
},
"name": "set_port_pvid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| pvid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |