summaryrefslogtreecommitdiffstats
path: root/lib/mgmt.proto
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/mgmt.proto41
1 files changed, 13 insertions, 28 deletions
diff --git a/lib/mgmt.proto b/lib/mgmt.proto
index 9e4b39a..01a99ab 100644
--- a/lib/mgmt.proto
+++ b/lib/mgmt.proto
@@ -55,7 +55,10 @@ message YangData {
enum CfgDataReqType {
REQ_TYPE_NONE = 0;
SET_DATA = 1;
- DELETE_DATA = 2;
+ REMOVE_DATA = 2;
+ CREATE_DATA = 3;
+ DELETE_DATA = 4;
+ REPLACE_DATA = 5;
}
message YangCfgDataReq {
@@ -73,8 +76,9 @@ message YangGetDataReq {
//
message BeSubscribeReq {
required string client_name = 1;
- required bool subscribe_xpaths = 2;
- repeated string xpath_reg = 3;
+ repeated string config_xpaths = 2;
+ repeated string oper_xpaths = 3;
+ repeated string notif_xpaths = 4;
}
message BeSubscribeReply {
@@ -94,16 +98,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 {
@@ -112,15 +114,8 @@ message BeCfgDataApplyReq {
message BeCfgDataApplyReply {
required uint64 txn_id = 1;
- repeated uint64 batch_ids = 2;
- required bool success = 3;
- optional string error_if_any = 4;
-}
-
-message BeOperDataGetReq {
- required uint64 txn_id = 1;
- required uint64 batch_id = 2;
- repeated YangGetDataReq data = 3;
+ required bool success = 2;
+ optional string error_if_any = 3;
}
message YangDataReply {
@@ -128,14 +123,6 @@ message YangDataReply {
required int64 next_indx = 2;
}
-message BeOperDataGetReply {
- required uint64 txn_id = 1;
- required uint64 batch_id = 2;
- required bool success = 3;
- optional string error = 4;
- optional YangDataReply data = 5;
-}
-
//
// Any message on the MGMTD Backend Interface.
//
@@ -149,8 +136,6 @@ message BeMessage {
BeCfgDataCreateReply cfg_data_reply = 7;
BeCfgDataApplyReq cfg_apply_req = 8;
BeCfgDataApplyReply cfg_apply_reply = 9;
- BeOperDataGetReq get_req = 10;
- BeOperDataGetReply get_reply = 11;
}
}