diff options
author | John Estabrook <jestabro@vyos.io> | 2025-03-30 15:30:39 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2025-03-31 00:50:30 -0500 |
commit | 56b05dc3b8d04de25489b4510ba25efc584ebc7a (patch) | |
tree | e70327dc233daaf9bca548ba036045cae7e29f9e /src/commit.mli | |
parent | bed066dbf1b6cf9d606c0f1f827cce30f4dcc430 (diff) | |
download | vyconf-56b05dc3b8d04de25489b4510ba25efc584ebc7a.tar.gz vyconf-56b05dc3b8d04de25489b4510ba25efc584ebc7a.zip |
T7272: add commit processing of commitd response
Diffstat (limited to 'src/commit.mli')
-rw-r--r-- | src/commit.mli | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/commit.mli b/src/commit.mli index 696f595..12ad084 100644 --- a/src/commit.mli +++ b/src/commit.mli @@ -17,21 +17,28 @@ type node_data = { type commit_data = { session_id: string; - named_active : string option; - named_proposed : string option; dry_run: bool; atomic: bool; background: bool; init: status option; node_list: node_data list; + config_diff: Vyos1x.Config_tree.t; + config_result: Vyos1x.Config_tree.t; + result: status; } [@@deriving to_yojson] +exception Commit_error of string + val tree_source_to_yojson : tree_source -> [> `String of string ] val default_node_data : node_data val default_commit_data : commit_data -val calculate_priority_lists : Vyos1x.Reference_tree.t -> Vyos1x.Config_tree.t -> Vyos1x.Config_tree.t -> node_data list * node_data list +val make_commit_data : Vyos1x.Reference_tree.t -> Vyos1x.Config_tree.t -> Vyos1x.Config_tree.t -> string -> commit_data + +val calculate_priority_lists : Vyos1x.Reference_tree.t -> Vyos1x.Config_tree.t -> node_data list * node_data list + +val commit_update : commit_data -> commit_data val commit_store : commit_data -> unit |