Improved config function

reviewable/pr18780/r1
GGabriele 8 years ago
parent f12fb67ca4
commit 9a5338e52f

@ -251,15 +251,6 @@ def execute_config_command(commands, module):
clie = get_exception() clie = get_exception()
module.fail_json(msg='Error sending CLI commands', module.fail_json(msg='Error sending CLI commands',
error=str(clie), commands=commands) error=str(clie), commands=commands)
except AttributeError:
try:
commands.insert(0, 'configure')
module.cli.add_commands(commands, output='config')
module.cli.run_commands()
except ShellError:
clie = get_exception()
module.fail_json(msg='Error sending CLI commands',
error=str(clie), commands=commands)
def get_cli_body_ssh_vrf_interface(command, response, module): def get_cli_body_ssh_vrf_interface(command, response, module):

Loading…
Cancel
Save