From bca384a3a6446ce772858c0a1768e2e1be6dfbe5 Mon Sep 17 00:00:00 2001 From: GGabriele Date: Tue, 6 Sep 2016 12:36:16 +0200 Subject: [PATCH] Improved config function --- network/nxos/nxos_ip_interface.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/network/nxos/nxos_ip_interface.py b/network/nxos/nxos_ip_interface.py index bafc444e3b5..fa9abfd782f 100644 --- a/network/nxos/nxos_ip_interface.py +++ b/network/nxos/nxos_ip_interface.py @@ -258,15 +258,6 @@ def execute_config_command(commands, module): clie = get_exception() module.fail_json(msg='Error sending CLI 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(command, response, module):