vyos_set
Configure a VyOS router by setting a single configuration path, such as interfaces, hostname, or firewall rules, with optional commit-confirm timeout.
Instructions
Set a single VyOS configuration path.
Equivalent to 'set ' in configure mode. The value is the last element of the path list.
Args: params: - path: Config path including the value as the last segment - confirm_time: Optional rollback timeout in minutes
Returns: str: Success message or error.
Examples: - Set interface address: path=["interfaces", "ethernet", "eth0", "address", "10.0.0.1/24"] - Set hostname: path=["system", "host-name", "router01"] - Enable SSH: path=["service", "ssh"] - Set static route: path=["protocols", "static", "route", "0.0.0.0/0", "next-hop", "10.0.0.254"] - Set firewall rule: path=["firewall", "name", "WAN_IN", "rule", "10", "action", "accept"]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |