|
|
@ -129,8 +129,10 @@ def get_cli_body_ssh_vrf(command, response):
|
|
|
|
|
|
|
|
|
|
|
|
def execute_show(cmds, module, command_type=None):
|
|
|
|
def execute_show(cmds, module, command_type=None):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
response = module.execute(cmds,
|
|
|
|
if command_type:
|
|
|
|
command_type=command_type) if command_type else module.execute(cmds)
|
|
|
|
response = module.execute(cmds, command_type=command_type)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
response = module.execute(cmds)
|
|
|
|
except ShellError, clie:
|
|
|
|
except ShellError, clie:
|
|
|
|
module.fail_json(msg='Error sending {0}'.format(cmds),
|
|
|
|
module.fail_json(msg='Error sending {0}'.format(cmds),
|
|
|
|
error=str(clie))
|
|
|
|
error=str(clie))
|
|
|
|