vyos_exists
Check if a VyOS configuration path exists to avoid errors when setting or deleting. Returns true or false.
Instructions
Check whether a configuration path exists.
Returns true/false. Useful before setting or deleting a path.
Args: params: path — config path segments to check
Returns: str: "true" or "false"
Examples: - Check if API is enabled: path=["service", "https", "api"] - Check if interface exists: path=["interfaces", "ethernet", "eth1"]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |