summaryrefslogtreecommitdiff
path: root/src/commit.mli
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-04-01 15:39:44 +0100
committerGitHub <noreply@github.com>2025-04-01 15:39:44 +0100
commitaedecf6fa96509ef59fd2e1f607a8a13c18d214b (patch)
tree610d48220e115555d1770f9d7631999b3101bd80 /src/commit.mli
parent920b75a6dbf9eac4b94600b759818b2ec28004ae (diff)
parentab010dbe993afc990fafa4525e1a94670ca7f5a4 (diff)
downloadvyconf-aedecf6fa96509ef59fd2e1f607a8a13c18d214b.tar.gz
vyconf-aedecf6fa96509ef59fd2e1f607a8a13c18d214b.zip
Merge pull request #17 from jestabro/commit-post
T7272: update vyconf config tree on results from commitd
Diffstat (limited to 'src/commit.mli')
-rw-r--r--src/commit.mli17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/commit.mli b/src/commit.mli
index da97389..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 commit_store : commit_data -> unit
+val calculate_priority_lists : Vyos1x.Reference_tree.t -> Vyos1x.Config_tree.t -> node_data list * node_data list
-val show_commit_data : Vyos1x.Config_tree.t -> Vyos1x.Config_tree.t -> string
+val commit_update : commit_data -> commit_data
+
+val commit_store : commit_data -> unit