vyos_configure_batch
Apply multiple configuration operations atomically in a single commit to ensure related changes are applied together.
Instructions
Apply multiple configuration operations in a single atomic commit.
Use this for changes that must be applied together (e.g. creating a VXLAN interface with its remote and VNI, or setting up a firewall ruleset with multiple rules).
Args: params: - operations: List of {op, path} dicts - confirm_time: Optional rollback timeout in minutes
Returns: str: Success message or error.
Examples: - Create VXLAN with settings: operations=[ {"op": "set", "path": ["interfaces", "vxlan", "vxlan1", "remote", "203.0.113.99"]}, {"op": "set", "path": ["interfaces", "vxlan", "vxlan1", "vni", "1"]}, {"op": "set", "path": ["interfaces", "vxlan", "vxlan1", "address", "10.10.10.1/24"]} ] - Set up BGP peer: operations=[ {"op": "set", "path": ["protocols", "bgp", "65000", "neighbor", "10.0.0.2", "remote-as", "65001"]}, {"op": "set", "path": ["protocols", "bgp", "65000", "neighbor", "10.0.0.2", "address-family", "ipv4-unicast"]} ]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |