vyos_configure_interface
Apply multiple interface settings in a single atomic commit so interdependent fields validate correctly, with optional save. Use it to configure addresses, MTU, VNI, and peer options at once.
Instructions
Configure an interface with a set of leaf settings in one commit.
All settings are applied together, so interdependent fields validate correctly.
Args: type: Interface type, e.g. "ethernet", "bridge", "bonding", "vxlan", "wireguard", "tunnel", "dummy", "loopback". name: Interface name, e.g. "eth1", "br0", "wg0". settings: Map of setting path (relative to the interface) to value. The key may be space-separated for nested nodes. Examples: {"address": "192.0.2.1/24", "mtu": "1500"} {"vni": "100", "remote": "203.0.113.9", "source-address": "198.51.100.1"} {"private-key": "...", "peer WG0 allowed-ips": "0.0.0.0/0"} A value of null/empty creates a valueless node. description: Optional interface description. save: Persist after commit (default False).
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": {
"type": "<type>",
"name": "<name>",
"settings": "<settings>"
},
"name": "vyos_configure_interface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| save | No | ||
| type | Yes | ||
| settings | Yes | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |