summaryrefslogtreecommitdiff
path: root/src/commit.mli
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-03-16 21:38:21 -0500
committerJohn Estabrook <jestabro@vyos.io>2025-03-16 23:13:39 -0500
commit66ba4b46b18d5c1449df758d87e0be3e621bc98a (patch)
tree5bb9ad20a946eb6df9d0a1c2461c719cb7c3f39a /src/commit.mli
parent41cbac4d6467c8bd62eeb247d2e28efa359e4a1c (diff)
downloadvyconf-66ba4b46b18d5c1449df758d87e0be3e621bc98a.tar.gz
vyconf-66ba4b46b18d5c1449df758d87e0be3e621bc98a.zip
T7121: extend and rename commit data records to parallel vyos-commitd
Diffstat (limited to 'src/commit.mli')
-rw-r--r--src/commit.mli28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/commit.mli b/src/commit.mli
index db91195..6db7f3a 100644
--- a/src/commit.mli
+++ b/src/commit.mli
@@ -1,2 +1,30 @@
+type status = {
+ success : bool;
+ out : string;
+}
+
+type node_data = {
+ script_name: string option;
+ priority: int;
+ tag_value: string option;
+ arg_value: string option;
+ path: string list;
+ reply: status option;
+} [@@deriving yojson]
+
+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;
+} [@@deriving yojson]
+
+val default_node_data : node_data
+
+val default_commit_data : commit_data
val show_commit_data : Vyos1x.Config_tree.t -> Vyos1x.Config_tree.t -> string