diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-02-17 23:15:57 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-02-17 23:15:57 +0700 |
commit | bfa93363f3e8533ef352cad38c2adfa21dbc28a3 (patch) | |
tree | 4c5786f9688f018d5cbead2588c409802d9dbc31 /data | |
parent | d4ee9b96e02e1413cc19ce638aec07408468ca30 (diff) | |
download | vyconf-bfa93363f3e8533ef352cad38c2adfa21dbc28a3.tar.gz vyconf-bfa93363f3e8533ef352cad38c2adfa21dbc28a3.zip |
Add Config_tree.render_at_level function for correct rendering of configs for human consumption.
The idea of the correct (for subsequent parsing) and familiar for all other purposes rendering:
* When rendering the entire config, do not render the invisible "root" node, only render its children.
* When rendering config at specified path, do not include any nodes that are within the path
(e.g. if path "system login" exists, "show system" request output should start with "login {",
not "system { login { ...").
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions