diff options
author | John Estabrook <jestabro@vyos.io> | 2025-01-14 12:33:06 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2025-01-15 18:42:07 -0600 |
commit | 5cb1952f52a8a67905a9361364a0c0823d44ed03 (patch) | |
tree | 96217a1eaf38c910e183c30f2adab865b409e916 /src/vycli.ml | |
parent | 41bb56f9a69001100c5a003f3a0abb03afd3bae2 (diff) | |
download | vyconf-5cb1952f52a8a67905a9361364a0c0823d44ed03.tar.gz vyconf-5cb1952f52a8a67905a9361364a0c0823d44ed03.zip |
T7046: add request reload_reftree
Diffstat (limited to 'src/vycli.ml')
-rw-r--r-- | src/vycli.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vycli.ml b/src/vycli.ml index 1430a5a..f793ae0 100644 --- a/src/vycli.ml +++ b/src/vycli.ml @@ -11,6 +11,7 @@ type op_t = | OpGetValues | OpListChildren | OpValidate + | OpReloadReftree let token : string option ref = ref None let conf_format_opt = ref "curly" @@ -36,6 +37,7 @@ let args = [ ("--show-config", Arg.Unit (fun () -> op := Some OpShowConfig), "Show the configuration at the specified path"); ("--status", Arg.Unit (fun () -> op := Some OpStatus), "Send a status/keepalive message"); ("--validate", Arg.Unit (fun () -> op := Some OpValidate), "Validate path"); + ("--reload-reftree", Arg.Unit (fun () -> op := Some OpReloadReftree), "Reload reference tree"); ] let config_format_of_string s = @@ -77,6 +79,7 @@ let main socket op path out_format config_format = | OpListChildren -> list_children client path | OpShowConfig -> show_config client path | OpValidate -> validate client path + | OpReloadReftree -> reload_reftree client | _ -> Error "Unimplemented" |> Lwt.return end in match result with |