summaryrefslogtreecommitdiff
path: root/python/vyos/configtree.py
AgeCommit message (Collapse)Author
2024-10-07vyos.configtree: T4318: Allow set tag flag to true or falseNataliia Solomko
2024-10-03vyos.configtree: T6742: add bindings for create_node and is_leaf/set_leaf ↵Daniil Baturin
(#4109)
2024-07-29vyos.configtree: T6620: allow list_nodes() to work on non-existent pathsDaniil Baturin
and return an empty list in that case (handy for migration scripts and the like)
2024-06-26migration: T6007: write configtree operations to logJohn Estabrook
2024-06-05migration: T6447: add module compose_configJohn Estabrook
2024-03-28configtree: T6180: add masking function mask_inclusiveJohn Estabrook
2024-02-21T5996: selectively escape and restore single backslashes in configJohn Estabrook
2023-12-11load-config: T5815: provide a variety of load config methodsJohn Estabrook
Collect in a module several versions of a 'load config' function. They have different use cases according to performance and error reporting, and allow comparison of non-legacy and legacy variants.
2023-08-09xml: T5452: catch lib errors in generate_cacheJohn Estabrook
2023-07-28configtree: T5316: use single-pass to drop trim functionJohn Estabrook
2023-05-31configtree: T5251: catch/raise error in delete and delete_valueJohn Estabrook
Configtree functions delete/delete_value do not check return value of libvyosconfig functions; raise error on non-zero return value.
2023-05-10configtree: T5194: add function reference_tree_to_jsonJohn Estabrook
2023-03-29configdiff: T5089: add optional arg ordered_values for unit testsJohn Estabrook
2023-03-29configdiff: T5089: add union of configtrees for unit testJohn Estabrook
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.