summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-04-15 15:12:02 +0100
committerGitHub <noreply@github.com>2025-04-15 15:12:02 +0100
commit4f8cd87849ae16f5efb127b63767176a243bcd8d (patch)
tree29f42006c605a639ec0a1bcc467225ec880c7e5f /data
parent61566db58d2b5f8eacbd1564ba1ae0690ac4b1f6 (diff)
parentf6653abbc5d4a5229fafa49d49bf517f6baada33 (diff)
downloadvyconf-4f8cd87849ae16f5efb127b63767176a243bcd8d.tar.gz
vyconf-4f8cd87849ae16f5efb127b63767176a243bcd8d.zip
Merge pull request #20 from jestabro/vyconf-configsessionHEADmastercurrent
T7321: Replace legacy operations in configsession.py with vyconf client operations
Diffstat (limited to 'data')
-rw-r--r--data/vyconf.proto19
1 files changed, 15 insertions, 4 deletions
diff --git a/data/vyconf.proto b/data/vyconf.proto
index 56875a3..815ec68 100644
--- a/data/vyconf.proto
+++ b/data/vyconf.proto
@@ -9,7 +9,7 @@ message Request {
OutJSON = 1;
}
- message Status {
+ message Prompt {
}
message SetupSession {
@@ -34,6 +34,14 @@ message Request {
repeated string Path = 1;
}
+ message Discard {
+ optional int32 dummy = 1;
+ }
+
+ message SessionChanged {
+ optional int32 dummy = 1;
+ }
+
message Rename {
repeated string EditLevel = 1;
required string From = 2;
@@ -125,7 +133,7 @@ message Request {
oneof msg {
- Status status = 1;
+ Prompt prompt = 1;
SetupSession setup_session = 2;
Set set = 3;
Delete delete = 4;
@@ -148,6 +156,9 @@ message Request {
Validate validate = 21;
Teardown teardown = 22;
ReloadReftree reload_reftree = 23;
+ Load load = 24;
+ Discard discard = 25;
+ SessionChanged session_changed = 26;
}
}
@@ -156,7 +167,7 @@ message RequestEnvelope {
required Request request = 2;
}
-enum Status {
+enum Errnum {
SUCCESS = 0;
FAIL = 1;
INVALID_PATH = 2;
@@ -169,7 +180,7 @@ enum Status {
}
message Response {
- required Status status = 1;
+ required Errnum status = 1;
optional string output = 2;
optional string error = 3;
optional string warning = 4;