Skip to content

Commit e2d14d1

Browse files
authored
Merge pull request FRRouting#18878 from LabNConsulting/chopps/mgmtd-backend-cleanup
Eliminate protobuf from mgmtd backend (daemon) messaging
2 parents b416b1c + ba77d22 commit e2d14d1

File tree

15 files changed

+750
-1070
lines changed

15 files changed

+750
-1070
lines changed

lib/mgmt.proto

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -71,76 +71,11 @@ message YangGetDataReq {
7171
required int64 next_indx = 2;
7272
}
7373

74-
//
75-
// Backend Interface Messages
76-
//
77-
message BeSubscribeReq {
78-
required string client_name = 1;
79-
repeated string config_xpaths = 2;
80-
repeated string oper_xpaths = 3;
81-
repeated string notif_xpaths = 4;
82-
repeated string rpc_xpaths = 5;
83-
}
84-
85-
message BeSubscribeReply {
86-
required bool success = 1;
87-
}
88-
89-
message BeTxnReq {
90-
required uint64 txn_id = 1;
91-
required bool create = 2;
92-
}
93-
94-
message BeTxnReply {
95-
required uint64 txn_id = 1;
96-
required bool create = 2;
97-
required bool success = 3;
98-
}
99-
100-
message BeCfgDataCreateReq {
101-
required uint64 txn_id = 1;
102-
repeated YangCfgDataReq data_req = 2;
103-
required bool end_of_data = 3;
104-
}
105-
106-
message BeCfgDataCreateReply {
107-
required uint64 txn_id = 1;
108-
required bool success = 2;
109-
optional string error_if_any = 3;
110-
}
111-
112-
message BeCfgDataApplyReq {
113-
required uint64 txn_id = 1;
114-
}
115-
116-
message BeCfgDataApplyReply {
117-
required uint64 txn_id = 1;
118-
required bool success = 2;
119-
optional string error_if_any = 3;
120-
}
121-
12274
message YangDataReply {
12375
repeated YangData data = 1;
12476
required int64 next_indx = 2;
12577
}
12678

127-
//
128-
// Any message on the MGMTD Backend Interface.
129-
//
130-
message BeMessage {
131-
oneof message {
132-
BeSubscribeReq subscr_req = 2;
133-
BeSubscribeReply subscr_reply = 3;
134-
BeTxnReq txn_req = 4;
135-
BeTxnReply txn_reply = 5;
136-
BeCfgDataCreateReq cfg_data_req = 6;
137-
BeCfgDataCreateReply cfg_data_reply = 7;
138-
BeCfgDataApplyReq cfg_apply_req = 8;
139-
BeCfgDataApplyReply cfg_apply_reply = 9;
140-
}
141-
}
142-
143-
14479
//
14580
// Frontend Interface Messages
14681
//

0 commit comments

Comments
 (0)