Page MenuHomeVyOS Platform

Add a utility for querying values in config files
Closed, ResolvedPublicFEATURE REQUEST


Some scripts that run early in the boot process need to read values from the config before it's loaded, so they have to operate on the config file directly. Right now it's usually done with grep, which only works with options that have unique names. An example can be found in

The only option to do that is to write a Python script and use vyos.configtree, which is not always desirable, and when it comes to custom scripts made by users, the users may be unfamiliar with Python or simply prefer another language.

A wrapper for vyos.configtree can simplify that. For example:

vyos-config-file-query --file /config/config.boot --path "system options whatever" <--return-value|--return-values|--list-nodes|--exists> [--json]


Difficulty level
Unknown (require assessment)
Why the issue appeared?
Will be filled on close