add_static_route
Creates a static route in a virtual router, defining destination CIDR, next hop, and metric. Staged in the candidate config, so a commit is required to activate it.
Instructions
[MODIFIES CONFIG] Creates a static route in a virtual router. Staged in candidate config — requires 'commit' to activate.
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": {
"name": "<name>",
"destination": "<destination>",
"nexthop_type": "<nexthop_type>"
},
"name": "add_static_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Static route name | |
| metric | No | Route metric (default: 10) | |
| firewall | No | Target firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise. | |
| interface | No | Egress interface (e.g. 'ethernet1/1') | |
| destination | Yes | Destination CIDR (e.g. '10.0.0.0/8', '0.0.0.0/0') | |
| nexthop_type | Yes | Next-hop type | |
| nexthop_value | No | Next-hop IP address or virtual router name (required for ip-address and next-vr types) | |
| virtual_router | No | Virtual router name (default: 'default') |