Refactor/fix nxos_nxapi to use show run (#28675)

* Refactor/fix nxos_nxapi to use show run

* Fix unit tests

* Python 3 compatibility
This commit is contained in:
Mike Wiebe 2017-08-28 15:00:56 -04:00 committed by Nathaniel Case
commit 3d46258cff
11 changed files with 45 additions and 24 deletions

View file

@ -0,0 +1,7 @@
---
- name: Assert configuration changes
assert:
that:
- result.stdout[0]['TABLE_listen_on_port']['ROW_listen_on_port'].l_port
- result.stdout[0]['TABLE_listen_on_port']['ROW_listen_on_port'].l_port | string | search("9443")
- result.stdout[0]['operation_status'].o_status == 'nxapi enabled'

View file

@ -0,0 +1,7 @@
---
- name: Assert configuration changes
assert:
that:
- result.stdout[0].http_port is not defined
- result.stdout[0].https_port | string | search("9443")
- result.stdout[0].sandbox_status == 'Enabled'