From 66ba4b46b18d5c1449df758d87e0be3e621bc98a Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Sun, 16 Mar 2025 21:38:21 -0500 Subject: T7121: extend and rename commit data records to parallel vyos-commitd --- src/commit.mli | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/commit.mli') 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 -- cgit v1.2.3