Age | Commit message (Collapse) | Author |
|
This fixes `hostfile-update` in the dhcp-server
(cherry picked from commit 39d6ca61c50f70171b2f7bcccbba2c70d102cb7f)
|
|
|
|
- add new commands as arguments
- change boolean options with extra required string options to a single
string option that supports multiple arguments (makes a list)
- track done operations in an extra ops variable (required for apply option)
|
|
|
|
It also exposes those functions in vyos.configtree
|
|
|
|
|
|
|
|
|
|
This script is usually called with the output of "cli-shell-api showCfg", which does not escape backslashes. "ConfigTree()" expects escaped backslashes when parsing a config string (and also prints them itself). Therefore this script would fail.
Manually escape backslashes here to handle backslashes in any configuration strings properly. The alternative would be to modify the output of "cli-shell-api showCfg", but that may be break other things who rely on that specific output.
This fixes https://phabricator.vyos.net/T1001
|
|
|
|
configs to commands.
|