summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2026-08-28T9231: fix corner case: only consider subtrees containing full pathJohn Estabrook
2026-08-25T9231: add util subtree_values_of_pathJohn Estabrook
Get tag/leaf values of subtree defined by a partial path, for example, a reference path.
2026-08-25T9231: add is_terminal check on nodeJohn Estabrook
More ergonomic when folding over tree.
2026-08-25T9231: add util_reference_treeJohn Estabrook
Add utilities for collecting paths of the reference_tree satisfying a condition, with optional inclusion of extra data. Expose util for returning owner of path.
2026-08-25T9231: add support for kind and dependency elementsJohn Estabrook
2026-08-25T9231: change function name for clarityJohn Estabrook
2026-08-25T9231: drop unintended restriction on signatureJohn Estabrook
2026-08-25T9231: add coarse ordering when loading reference treeJohn Estabrook
Order by file name before loading, useful for the rare case of visual inspection of the data structure. Strict orderings of derived data is left to Python wrappers.
2026-08-25T9231: exclude spurious final tag value in subtree_from_partialJohn Estabrook
2026-08-25T9231: add option descent in subtree_from_partialJohn Estabrook
This has application in collecting the values of a partial path of a tag/leaf node; it has no effect on the general case.
2026-08-25T9231: change option name from recurse to descentJohn Estabrook
The term 'recurse' has other uses; change to the term 'descent', which more aptly describes 'including descendants of a node'.
2026-08-14Merge pull request #90 from jestabro/diff-functorDaniil Baturin
T9169: Refactor vyos1x-config diff functions in functorial style
2026-08-09T9182: simplify lexical_numeric_compare and catch corner caseJohn Estabrook
With bugs resolved, behavior remains as before, distinguishing numerical substrings containing leading 0's: this is to allow distinction in the case of arbitrary node name practices, such as "name1" and "name01". Equality of integer values is a matter for parsing/validation, not the comparator.
2026-08-05T9169: remove the now refactored config_diffJohn Estabrook
2026-08-05T9169: move util subtree_from_partial to derivedJohn Estabrook
The module derived should be the location for constructions involving both config_tree and reference_tree.
2026-08-05T9169: move clone function and values set to config_treeJohn Estabrook
2026-08-05T9169: factor out union/merge functions from config_diffJohn Estabrook
2026-08-05T9169: add mask instancesJohn Estabrook
2026-08-05T9169: add diff_show instanceJohn Estabrook
2026-08-05T9169: add diff_compare instanceJohn Estabrook
2026-08-05T9169: add diff_tree instanceJohn Estabrook
2026-08-05T9169: factor out diff calculation moduleJohn Estabrook
2026-05-27T8916: add missing descendents along paths in mask_exclusiveJohn Estabrook
2026-05-26T8916: add missing descendents along paths in subtree_from_partialJohn Estabrook
2026-04-16T8488: add read/write to string in 'internal' (yojson) formatJohn Estabrook
In addition to the existing read/write yojson to file, it is useful to have the string representation, for example, for including in config-sync request.
2026-04-16T8488: add utility subtree_from_partialJohn Estabrook
Return the subtree of a configtree indicated by a path that may only be partly defined, lacking some or all intervening tag node value.
2026-04-16T8488: add mask_exclusiveJohn Estabrook
This is the complement to mask_inclusive, for excluding subpaths of a tree, for example, a subtree first isolated by mask_inclusive.
2026-04-16T8488: add utility refpath_from_partialJohn Estabrook
Infer the reference path from a path that may or may not contain intervening tag nodes. Return an empty list on a nonsensical path.
2026-03-11T8269: handle element constraintSilenceOutput in creation of ref treeJohn Estabrook
2026-02-24T8313: add copy and rename to completion op variantJohn Estabrook
2026-02-24T8312: add edit to completion op variantJohn Estabrook
2026-02-06T8232: functions to calculate and render config tree with defaultsJohn Estabrook
2026-02-06T8232: add extended fold over tree function to track levelJohn Estabrook
The function fold_tree_with_path_cont allows the called function to return a list of values, reset at each return to local root. The motivating example is to carry a stack of boolean values to ignore paths below a certain level.
2026-02-06T8232: Config_tree.get_subtree should preserve tag attribute at rootJohn Estabrook
This is useful when walking a subtree of a config tree, as is used in config_dict.
2026-02-06T8232: add util get_subtree for reference_treeJohn Estabrook
This is the direct analogue of Config_tree.get_subtree, a safe wrapper around Vytree.get. Note that the twin functions could easily have been abstracted under Tree_alg, however, for such simple functions the redundancy is preferable.
2026-02-06T8232: simplify return value of fold_tree_with_pathJohn Estabrook
The details do not need to be exposed in the function signature.
2026-01-14T8164: add completion help hints to get_completion_envJohn Estabrook
2026-01-14T8164: add util list_of_string to split on whitespaceJohn Estabrook
2026-01-08Merge pull request #62 from jestabro/misplaced-check-in-completion-envDaniil Baturin
T8156: fix misplaced check for Nonexistent_path in get completion env
2026-01-07T8157: add missed case of vyconf completion, in the absence of valueHelpJohn Estabrook
This is the analogue of the case for cli-shell-api: if the XML element valueHelp does not exist, use the element help.
2026-01-06T8156: fix misplaced check for Nonexistent_path in get completion envJohn Estabrook
2025-12-21T8113: fix logic error in show on tag nodesJohn Estabrook
Due to an unnecessary modification of the path argument, a deleted tag node value will be shown as a deleted tag node: the deletion is processed correctly, but the show annotation is incorrect.
2025-12-19T8109: fix show command on leaf pathJohn Estabrook
Leaf node name/value was not included in output.
2025-12-17T8061: add function get_completion_envJohn Estabrook
2025-12-17T8061: add function get_default_valueJohn Estabrook
2025-12-17T8061: simplify allowed_edit_node with path_typeJohn Estabrook
2025-12-17T8061: extend node_type to path_type for path characteristicsJohn Estabrook
For an arbitrary path, determine if it has the characterists of a configuration path, and return the potential node type, solely in terms of the reference tree. No validation is taking place on values.
2025-12-17T8061: add boolean test for compatibility of path with reference treeJohn Estabrook
2025-12-17T8061: require strict check of existence in refpathJohn Estabrook
For use in reference_path_exists, add strict check in the utility that forms the reference path from a config path.
2025-12-17T8061: add test potential_leaf_value and refine error messagesJohn Estabrook