diff options
| author | John Estabrook <jestabro@vyos.io> | 2026-04-10 15:08:07 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2026-04-16 07:59:50 -0500 |
| commit | 460f2d895a6bf60e9c3b8aaabad3b5fccd2a379a (patch) | |
| tree | edd518959eb3b3b08f4c33ac1f1d8d9e7344a8dd /src/reference_tree.mli | |
| parent | 52132ad2c0992bf6f17a06173384030d93a29053 (diff) | |
| download | vyos1x-config-460f2d895a6bf60e9c3b8aaabad3b5fccd2a379a.tar.gz vyos1x-config-460f2d895a6bf60e9c3b8aaabad3b5fccd2a379a.zip | |
T8488: add utility refpath_from_partial
Infer the reference path from a path that may or may not contain
intervening tag nodes.
Return an empty list on a nonsensical path.
Diffstat (limited to 'src/reference_tree.mli')
| -rw-r--r-- | src/reference_tree.mli | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reference_tree.mli b/src/reference_tree.mli index 04347a5..b1341da 100644 --- a/src/reference_tree.mli +++ b/src/reference_tree.mli @@ -117,6 +117,8 @@ val get_subtree : ?with_node:bool -> t -> string list -> t val refpath : t -> string list -> string list +val refpath_from_partial : t -> string list -> string list + val set_tag_data : t -> Config_tree.t -> string list -> Config_tree.t [@@alert exn "Vytree.Empty_path"] [@@alert exn "Vytree.Nonexistent_path"] |
