nxos integration fix part 1 (#27069)

* Assorted Python 3 fixes

* Fix `testcase` definition in integration tests

* Fix nxos_acl_interface

* clean up nxapi after nxos_nxapi
This commit is contained in:
Nathaniel Case 2017-07-19 14:00:05 -04:00 committed by GitHub
commit 56a0b988a9
12 changed files with 29 additions and 11 deletions

View file

@ -88,7 +88,10 @@ from ansible.module_utils.basic import AnsibleModule
def check_for_acl_int_present(module, name, intf, direction):
# Need to Captitalize the interface name as the nxos
# output has capitalization
command = ['show running-config aclmgr | section {0}'.format(intf.title())]
command = [{
'command': 'show running-config aclmgr | section {0}'.format(intf.title()),
'output': 'text',
}]
body = run_commands(module, command)
if direction == 'ingress':