summaryrefslogtreecommitdiff
path: root/lib/mgmt.proto
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-10-21 00:51:01 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2023-11-12 03:20:54 +0200
commitb3b5951ee7c74be9d53771a12e31d31e5c8e36c0 (patch)
tree431c50c9665a00998e6bda12bb43b73789362c6c /lib/mgmt.proto
parent19bcca4f2e9a3ee3c8cc16608dcf303241bbf014 (diff)
mgmtd, lib: remove batch ids from all messages
Batch IDs are only used to verify that all messages were received and processed by a backend. It's not necessary to do that as we use reliable stream transport - messages can't be dropped or received out of order. This commit also fixes possible race condition that can happen if one backend process messages slower than other backends. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/mgmt.proto')
-rw-r--r--lib/mgmt.proto10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/mgmt.proto b/lib/mgmt.proto
index c901a923d8..86b118d356 100644
--- a/lib/mgmt.proto
+++ b/lib/mgmt.proto
@@ -94,16 +94,14 @@ message BeTxnReply {
message BeCfgDataCreateReq {
required uint64 txn_id = 1;
- required uint64 batch_id = 2;
- repeated YangCfgDataReq data_req = 3;
- required bool end_of_data = 4;
+ repeated YangCfgDataReq data_req = 2;
+ required bool end_of_data = 3;
}
message BeCfgDataCreateReply {
required uint64 txn_id = 1;
- required uint64 batch_id = 2;
- required bool success = 3;
- optional string error_if_any = 4;
+ required bool success = 2;
+ optional string error_if_any = 3;
}
message BeCfgDataApplyReq {