vyos_add_static_route
Add an IPv4 or IPv6 static route on a VyOS router in one commit, specifying destination, next hop, interface, distance, and optional persistence.
Instructions
Add a static route (IPv4 or IPv6) in one commit.
Provide a next_hop, an interface, or both.
Args: destination: Destination prefix, e.g. "10.0.0.0/8" or "::/0". next_hop: Gateway address, e.g. "192.0.2.1". interface: Egress interface for an interface route, e.g. "eth1". distance: Optional administrative distance. family: "ipv4" (default) or "ipv6". 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": {
"destination": "<destination>"
},
"name": "vyos_add_static_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| family | No | ipv4 | |
| distance | No | ||
| next_hop | No | ||
| interface | No | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |