@@ -104,3 +104,48 @@ def getoper (self, path):
104
104
for response in responses :
105
105
objects += response .yangjson
106
106
return objects
107
+
108
+ def cliconfig (self , cli ):
109
+ """Post of CLI config commands in text
110
+ :param data: cli show
111
+ :type data: str
112
+ :return: Return the response object
113
+ :rtype: str
114
+ """
115
+ message = ems_grpc_pb2 .CliConfigArgs (cli = cli )
116
+ response = self ._stub .CliConfig (message , self ._timeout , metadata = self ._metadata )
117
+ return response
118
+
119
+ def showcmdtextoutput (self , cli ):
120
+ """ Get of CLI show commands in text
121
+ :param data: cli show
122
+ :type data: str
123
+ :return: Return the response object
124
+ :rtype: str
125
+ """
126
+ stub = ems_grpc_pb2 .beta_create_gRPCExec_stub (self ._channel )
127
+ message = ems_grpc_pb2 .ShowCmdArgs (cli = cli )
128
+ responses = stub .ShowCmdTextOutput (message , self ._timeout , metadata = self ._metadata )
129
+ objects = ''
130
+ for response in responses :
131
+ objects += response .output
132
+ return objects
133
+
134
+ def showcmdjsonoutput (self , cli ):
135
+ """ Get of CLI show commands in json
136
+ :param data: cli show
137
+ :type data: str
138
+ :return: Return the response object
139
+ :rtype: str
140
+ """
141
+ stub = ems_grpc_pb2 .beta_create_gRPCExec_stub (self ._channel )
142
+ message = ems_grpc_pb2 .ShowCmdArgs (cli = cli )
143
+ responses = stub .ShowCmdJSONOutput (message , self ._timeout , metadata = self ._metadata )
144
+ objects = ''
145
+ for response in responses :
146
+ objects += response .jsonoutput
147
+ return objects
148
+
149
+
150
+
151
+
0 commit comments