131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
# File 'lib/cisco_node_utils/client/grpc/client.rb', line 131
def get(data_format: :cli,
command: nil,
context: nil,
value: nil,
**kwargs)
super
fail ArgumentError if command.nil?
if data_format == :yang_json
mode = kwargs[:mode] || :get_config
yang_req(@config, mode, ConfigGetArgs.new(yangpathjson: command))
else
args = ShowCmdArgs.new(cli: command)
output = req(@exec, 'show_cmd_text_output', args)
self.class.filter_cli(cli_output: output, context: context, value: value)
end
end
|