diff options
author | John Estabrook <jestabro@vyos.io> | 2024-10-23 18:50:46 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2024-10-27 21:17:35 -0500 |
commit | 085b22f7be84944a27e565be4227dc55720bec47 (patch) | |
tree | 7ff755934372cfc860408663848a752febff7d5a /src/vyconf_config.ml | |
parent | 60cc099df46e1cbcb7b37be3fe455978f800887f (diff) | |
download | vyconf-085b22f7be84944a27e565be4227dc55720bec47.tar.gz vyconf-085b22f7be84944a27e565be4227dc55720bec47.zip |
T6718: read reference tree json file on startup
Diffstat (limited to 'src/vyconf_config.ml')
-rw-r--r-- | src/vyconf_config.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vyconf_config.ml b/src/vyconf_config.ml index 07ab3ef..2640c9b 100644 --- a/src/vyconf_config.ml +++ b/src/vyconf_config.ml @@ -7,6 +7,7 @@ type t = { config_dir: string; primary_config: string; fallback_config: string; + reference_tree: string; socket: string; pid_file: string; log_file: string option; @@ -23,6 +24,7 @@ let empty_config = { config_dir = ""; primary_config = ""; fallback_config = ""; + reference_tree = ""; socket = ""; pid_file = ""; log_file = None; @@ -61,6 +63,7 @@ let load filename = let conf = {conf with program_dir = mandatory_field conf_toml "appliance" "program_dir"} in let conf = {conf with primary_config = mandatory_field conf_toml "appliance" "primary_config"} in let conf = {conf with fallback_config = mandatory_field conf_toml "appliance" "fallback_config"} in + let conf = {conf with reference_tree = mandatory_field conf_toml "appliance" "reference_tree"} in (* Optional fields *) let conf = {conf with pid_file = optional_field defaults.pid_file conf_toml "vyconf" "pid_file"} in let conf = {conf with socket = optional_field defaults.socket conf_toml "vyconf" "socket"} in |