vyos_configure_batch
Apply multiple configuration operations as one atomic commit to set up VyOS firewall, NAT, tunnel, or scheduler blocks whose fields must validate together, preventing separate-request failures.
Instructions
Apply multiple set/delete/comment operations as a single commit transaction.
This is the workhorse for anything whose fields are validated together: a firewall rule (action + protocol + ports), a NAT rule (translation), a VXLAN or tunnel block, a scheduler task (executable + interval). Sending such fields in separate requests fails validation because each request commits on its own.
Args: operations: List of objects, each {"op": "set"|"delete"|"comment", "path": [...] or "a b c", optional "value": "..."}. The value, if given, is appended to the path. confirm_time: If > 0, commit-confirm for the whole transaction. save: Persist to /config/config.boot after a successful commit (default False).
A list is applied atomically per component: if one operation fails, nothing is committed for that component. The error names the component and missing field.
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": {
"operations": "<operations>"
},
"name": "vyos_configure_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| operations | Yes | ||
| confirm_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |