optional YangDataReply data = 5;
}
-message BeOperDataNotify {
- required YangDataReply data = 5;
-}
-
-message BeConfigCmdReq {
- required string cmd = 1;
-}
-
-message BeConfigCmdReply {
- required bool success = 1;
- required string error_if_any = 2;
-}
-
-message BeShowCmdReq {
- required string cmd = 1;
-}
-
-message BeShowCmdReply {
- required bool success = 1;
- required string cmd_ouput = 2;
-}
-
//
// Any message on the MGMTD Backend Interface.
//
BeCfgDataApplyReply cfg_apply_reply = 9;
BeOperDataGetReq get_req = 10;
BeOperDataGetReply get_reply = 11;
- BeOperDataNotify notify_data = 12;
- BeConfigCmdReq cfg_cmd_req = 13;
- BeConfigCmdReply cfg_cmd_reply = 14;
- BeShowCmdReq show_cmd_req = 15;
- BeShowCmdReply show_cmd_reply = 16;
}
}
client_ctx, (uint64_t)be_msg->cfg_apply_req->txn_id);
break;
case MGMTD__BE_MESSAGE__MESSAGE_GET_REQ:
- case MGMTD__BE_MESSAGE__MESSAGE_SUBSCR_REQ:
- case MGMTD__BE_MESSAGE__MESSAGE_CFG_CMD_REQ:
- case MGMTD__BE_MESSAGE__MESSAGE_SHOW_CMD_REQ:
MGMTD_BE_CLIENT_ERR("Got unhandled message type %u",
be_msg->message_case);
/*
* NOTE: The following messages are always sent from Backend
* clients to MGMTd only and/or need not be handled here.
*/
+ case MGMTD__BE_MESSAGE__MESSAGE_SUBSCR_REQ:
case MGMTD__BE_MESSAGE__MESSAGE_GET_REPLY:
case MGMTD__BE_MESSAGE__MESSAGE_TXN_REPLY:
case MGMTD__BE_MESSAGE__MESSAGE_CFG_DATA_REPLY:
case MGMTD__BE_MESSAGE__MESSAGE_CFG_APPLY_REPLY:
- case MGMTD__BE_MESSAGE__MESSAGE_CFG_CMD_REPLY:
- case MGMTD__BE_MESSAGE__MESSAGE_SHOW_CMD_REPLY:
- case MGMTD__BE_MESSAGE__MESSAGE_NOTIFY_DATA:
case MGMTD__BE_MESSAGE__MESSAGE__NOT_SET:
default:
/*
be_msg->cfg_apply_reply->error_if_any, adapter);
break;
case MGMTD__BE_MESSAGE__MESSAGE_GET_REPLY:
- case MGMTD__BE_MESSAGE__MESSAGE_CFG_CMD_REPLY:
- case MGMTD__BE_MESSAGE__MESSAGE_SHOW_CMD_REPLY:
- case MGMTD__BE_MESSAGE__MESSAGE_NOTIFY_DATA:
/*
* TODO: Add handling code in future.
*/
case MGMTD__BE_MESSAGE__MESSAGE_TXN_REQ:
case MGMTD__BE_MESSAGE__MESSAGE_CFG_DATA_REQ:
case MGMTD__BE_MESSAGE__MESSAGE_CFG_APPLY_REQ:
- case MGMTD__BE_MESSAGE__MESSAGE_CFG_CMD_REQ:
- case MGMTD__BE_MESSAGE__MESSAGE_SHOW_CMD_REQ:
case MGMTD__BE_MESSAGE__MESSAGE__NOT_SET:
default:
/*