diff options
| author | John Estabrook <jestabro@vyos.io> | 2024-10-24 11:04:39 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2024-10-24 11:04:39 -0500 |
| commit | 73e0836d9d64c9dbbf53b82d18ab84e525f59ad6 (patch) | |
| tree | f858ca6fe042a79fbd809aeafe9e33a7ef946cb9 /src/reference_tree.mli | |
| parent | 8bb9e607eb1c7b0a701292a36583c91f4a0cdc7b (diff) | |
| download | vyos1x-config-73e0836d9d64c9dbbf53b82d18ab84e525f59ad6.tar.gz vyos1x-config-73e0836d9d64c9dbbf53b82d18ab84e525f59ad6.zip | |
T6718: validate_path returns unit instead of (path, value)
Splitting of path arg into (path, value), as originally returned by
validate_path, is now handled by a utility function. validate_path
returns unit on success and raises error with output on failure.
Diffstat (limited to 'src/reference_tree.mli')
| -rw-r--r-- | src/reference_tree.mli | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reference_tree.mli b/src/reference_tree.mli index 964380e..a8d4efa 100644 --- a/src/reference_tree.mli +++ b/src/reference_tree.mli @@ -40,7 +40,9 @@ val load_from_xml : t -> string -> t val find_xml_child : string -> Xml_light_types.xml -> Xml_light_types.xml option -val validate_path : string -> t -> string list -> string list * string option +val validate_path : string -> t -> string list -> unit + +val split_path : t -> string list -> string list * string option val is_multi : t -> string list -> bool |
