summaryrefslogtreecommitdiff
path: root/src/config_diff.mli
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2026-04-10 22:02:50 -0500
committerJohn Estabrook <jestabro@vyos.io>2026-04-16 07:59:50 -0500
commitf6e50f41de5dde75a27426d3d164a8f69f62d34d (patch)
treeba85646294bce5a9507d8ec08f4d562defff341d /src/config_diff.mli
parentb5d79efaa9f1463c6babab48f43667e39dd1bca4 (diff)
downloadvyos1x-config-f6e50f41de5dde75a27426d3d164a8f69f62d34d.tar.gz
vyos1x-config-f6e50f41de5dde75a27426d3d164a8f69f62d34d.zip
T8488: add utility subtree_from_partial
Return the subtree of a configtree indicated by a path that may only be partly defined, lacking some or all intervening tag node value.
Diffstat (limited to 'src/config_diff.mli')
-rw-r--r--src/config_diff.mli4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config_diff.mli b/src/config_diff.mli
index 483e7df..168b748 100644
--- a/src/config_diff.mli
+++ b/src/config_diff.mli
@@ -70,3 +70,7 @@ val mask_tree : ?exclusive:bool -> Config_tree.t -> Config_tree.t -> Config_tree
[@@alert exn "Config_diff.Empty_comparison"]
val get_tagged_delete_tree : Config_tree.t -> Config_tree.t
+
+exception Malformed_path of string
+val subtree_from_partial : Reference_tree.t -> Config_tree.t -> Config_tree.t -> string list -> Config_tree.t
+[@@alert exn "Config_diff.Malformed_path"]