summaryrefslogtreecommitdiff
path: root/data/vycall.proto
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-03-16 22:42:20 -0500
committerJohn Estabrook <jestabro@vyos.io>2025-03-16 23:13:39 -0500
commitfc5eaa7cd07b1f31c94e00d1bc4c2c368f61807d (patch)
treece79e37e5872adea36c2f7e5e8e9fd97fa4ee7ba /data/vycall.proto
parentd366f8e302ddadf9ad6ee74ca5430dcc52a7c67b (diff)
downloadvyconf-fc5eaa7cd07b1f31c94e00d1bc4c2c368f61807d.tar.gz
vyconf-fc5eaa7cd07b1f31c94e00d1bc4c2c368f61807d.zip
T7121: add commitd protobuf message definition file
Diffstat (limited to 'data/vycall.proto')
-rw-r--r--data/vycall.proto27
1 files changed, 27 insertions, 0 deletions
diff --git a/data/vycall.proto b/data/vycall.proto
new file mode 100644
index 0000000..e0af67b
--- /dev/null
+++ b/data/vycall.proto
@@ -0,0 +1,27 @@
+message Status {
+ required bool success = 1;
+ required string out = 2;
+}
+
+message Call {
+ required string script_name = 1;
+ optional string tag_value = 2;
+ optional string arg_value = 3;
+ optional Status reply = 4;
+}
+
+message Commit {
+ required string session_id = 1;
+ // optional explicit load;
+ // otherwise, session configs are loaded from cached internal
+ // representation, specified by session id value
+ optional string named_active = 2;
+ optional string named_proposed = 3;
+ //
+ required bool dry_run = 4;
+ required bool atomic = 5;
+ required bool background = 6;
+
+ optional Status init = 7;
+ repeated Call calls = 8;
+}