summaryrefslogtreecommitdiff
path: root/python/vyos/configtree.py
AgeCommit message (Collapse)Author
2023-02-11config_mgmt: T4991: use configtree.show_diff instead of Python difflibJohn Estabrook
2023-01-27configtree: T4961: improve error reporting of copyJohn Estabrook
2022-11-10migration: T4808: print configtree operations during migrationJohn Estabrook
Print configtree operations to stdout during migration; the migrator will log the output.
2022-02-28configtree: T4235: distinguish sub(-tract) tree from delete treeJohn Estabrook
The DiffTree class maintains both the 'sub'(-tract) configtree, containing all paths in the LHS of the comparison that are not in the RHS, and the 'delete' configtree: the delete tree is the minimal subtree containing only the first node of a path not present in the RHS. It is the delete tree that is needed to produce 'delete' commands for config mode, whereas the 'sub' tree contains full information, needed for recursively detecting changes to a node.
2022-02-28configtree: T4235: allow empty argumentsJohn Estabrook
2022-02-28configtree: T4235: simplification of diff_tree classJohn Estabrook
The return value of diff_tree is now a single config_tree, with initial children of names: ["add", "delete", "inter"] containing the config sub-trees of added paths; deleted paths; and intersection, respectively. The simplifies dumping to json, and checking existence of paths, hence, of node changes.
2022-02-28configtree: T4235: add utility get_subtreeJohn Estabrook
2022-02-08configtree: T4235: encapsulate config tree diff functionJohn Estabrook
2020-04-18vyos.configtree: bugfix exception message used non existent variableChristian Poessinger
2020-03-30migration: T2029: extract the version string instead of strippingJohn Estabrook
2020-03-30migration: T2029: process new version syntax in configtreeJohn Estabrook
2019-12-03T1801: move escaping of backslashes into configtreeJohn Estabrook
2019-10-27T1773: add a script for converting the config to JSON.Daniil Baturin
It also exposes those functions in vyos.configtree
2019-08-20vyos.configtree: add help for set methodChristian Poessinger
2019-03-17[vyos.configtree] T1305: allow configs to end with leaf nodes.Daniil Baturin
2019-02-14[vyos.configtree] T1248: add a function for node copyingDaniil Baturin
Also improve sanity checks in the rename function and add unit tests for copy and rename.
2018-09-11Add support for retrieving error messages from inside libvyosconfig.Daniil Baturin
2018-09-10Improve error reporting in vyos.configtreeDaniil Baturin
2018-09-02T824: add Python bindings for the rename_node function to vyos.configtreeDaniil Baturin
2018-06-05T684: add bindings for the commands formatter and scripts for converting ↵Daniil Baturin
configs to commands.
2018-05-28Add bindings for libvyosconfig -- the standalone config file parsing and ↵Daniil Baturin
manipulation library.