Skip to content

Commit 64b8db2

Browse files
author
kkumara3
committed
adding cli show command
1 parent ed77cd3 commit 64b8db2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

client/cisco_grpc_client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,16 @@ def getoper (self, path):
104104
for response in responses:
105105
objects += response.yangjson
106106
return objects
107+
108+
def showcmdtextoutput (self, cli):
109+
""" Get of CLI show commands
110+
:param data: cli show
111+
:type data: str
112+
:return: Return the response object
113+
:rtype: str
114+
"""
115+
stub = ems_grpc_pb2.beta_create_gRPCExec_stub(self._channel)
116+
message = ems_grpc_pb2.ShowCmdArgs(cli = cli)
117+
response = stub.ShowCmdTextOutput(message, self._timeout, metadata = self._metadata)
118+
119+

0 commit comments

Comments
 (0)