From 32492d2cf67f08ea6c8f032eefd0117240daa548 Mon Sep 17 00:00:00 2001 From: mcmitch Date: Thu, 4 May 2023 08:49:02 +0100 Subject: [PATCH] Add support for ActionJSON Taken from https://www.cisco.com/c/en/us/td/docs/iosxr/ncs5500/programmability/73x/b-programmability-cg-ncs5500-73x/use-grpc-protocol-to-define-network-operation-with-data-models.html --- IDL/ems_grpc.proto | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/IDL/ems_grpc.proto b/IDL/ems_grpc.proto index 0251077..ecc8d1c 100644 --- a/IDL/ems_grpc.proto +++ b/IDL/ems_grpc.proto @@ -39,7 +39,7 @@ service gRPCExec { // Exec commands rpc ShowCmdTextOutput(ShowCmdArgs) returns(stream ShowCmdTextReply) {}; rpc ShowCmdJSONOutput(ShowCmdArgs) returns(stream ShowCmdJSONReply) {}; - + rpc ActionJSON(ActionJSONArgs) returns(stream ActionJSONReply) {}; } @@ -148,4 +148,13 @@ message ShowCmdJSONReply { string errors = 3; } +message ActionJSONArgs { + int64 ReqId = 1; + string yangpathjson = 2; +} +message ActionJSONReply { + int64 ResReqId = 1; + string yangjson = 2; + string errors = 3; +}