summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-01Merge pull request #10 from jestabro/eq-tree-root-nameequuleusDaniil Baturin
T4491: use empty string for name of config_tree root node
2022-07-01T4491: use empty string for name of config_tree root nodeJohn Estabrook
The practice of using "root" for the internal name of the root node collides with actual nodes named "root", due to a utility function that checks 'if root' by name. Use empty string as name of root node, as no actual node will match. (cherry picked from commit 4df07f8e286ebfacb70c87ee499a4d2c42b772e9)
2022-04-25Merge pull request #7 from jestabro/equuleus-config-diffDaniil Baturin
T4235: Add config tree diff algorithm
2022-04-21T4235: add function 'trim_tree' to produce tree for delete commandsJohn Estabrook
(cherry picked from commit a16d8f3305bd8e33763bc23bd1a49efd0699d506)
2022-04-21T4235: change type/variable names for clarity; add is_empty for listJohn Estabrook
(cherry picked from commit 275c95be26f86a06cbec3123bc90ffbcd76f78af)
2022-04-21T4235: keep full paths in subtract treeJohn Estabrook
In the intial implementation, the delete tree only kept the first node of a path not present in the RHS of the comparison; this was done as a convenience for generating 'trimmed' delete commands for the CLI. However, this loses needed information, and breaks the symmetry of results: LHS, RHS -> del, inter, add RHS, LHS -> add, inter, del Keep full paths in delete tree and rename trees.del to trees.sub(-tract). A separate function 'trim_tree' will be provided to produce a CLI-appopriate delete tree and commands. (cherry picked from commit 7e4d9ff86ca96a990f52e05310a0486cb668cfb8)
2022-04-21T4235: add utility function get_subtreeJohn Estabrook
(cherry picked from commit 23173c6b5d12e5b7990fafe2b43d40f5cbf1a2a5)
2022-04-21T4235: function diff_tree now returns single tree containing diffsJohn Estabrook
(cherry picked from commit 4d5e3522c14aa22538942e2601be5b6963236452)
2022-04-21configtree: T4235: render delete commandsJohn Estabrook
(cherry picked from commit cfc2e186822de7f15c15ae5e15f5872714c7dcd7)
2022-04-21configtree: T4235: implementation of config tree diffJohn Estabrook
(cherry picked from commit ba3b34c901b74aa4aee0764e4f3eb84731519139)
2022-04-21Use a modification of String.escaped to leave UTF-8 bytes unescapedJohn Estabrook
2019-10-27Merge branch 'master' of github.com:vyos/vyos1x-configvyos/1.2.6vyos/1.2.5vyos/1.2.4cruxDaniil Baturin
2019-10-27Remove batteries from dependencies and update version.Daniil Baturin
2019-10-27Expose the JSON AST export function.Daniil Baturin
2019-10-27Add a "simple" JSON renderer.Daniil Baturin
2019-07-29Remove batteries from dependencies.Daniil Baturin
2019-06-30Change syntax error wording.Daniil Baturin
2019-06-30T1479: switch to Menhir's incremental API and add support for reporting ↵Daniil Baturin
error line numbers.
2019-06-30T1478: Improved lexing error reporting, including proper support for single ↵Daniil Baturin
quoted strings.
2019-06-30Initial import of libraries from Vyconf and old libvyosconfig.Daniil Baturin