nxos tests to use network_cli (#34474)

* Fix over-byte

* Fix nxos_l2_interface docs

* Update connections for tasks

* Add default ssh port

* Only report provider when using connection=local

* Send empty provider when connection=network_cli

* Fix find tasks
This commit is contained in:
Nathaniel Case 2018-01-05 12:39:04 -05:00 committed by GitHub
commit c371ed8d30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
199 changed files with 1589 additions and 684 deletions

View file

@ -3,12 +3,12 @@
nxos_config:
lines:
- feature nxapi
provider: "{{ cli }}"
connection: network_cli
ignore_errors: yes
- name: Set nxapi to default state
nxos_nxapi:
provider: "{{ cli }}"
connection: network_cli
# Gather the list of interfaces on this device and make the list
# available for integration tests that need them.
@ -23,8 +23,8 @@
- name: "Collect interface list"
nxos_command:
commands: ['show interface brief | json']
provider: "{{ nxapi }}"
timeout: 60
connection: network_cli
register: intout
- set_fact: intdataraw="{{ intout.stdout_lines[0]['TABLE_interface']['ROW_interface'] }}"
@ -36,7 +36,7 @@
- name: "Gather image version info"
nxos_command:
commands: ['sh version | json']
provider: "{{ cli }}"
connection: network_cli
register: nxos_version_output
- set_fact: image_version="{{ nxos_version_output.stdout[0]['kickstart_ver_str'] }}"
@ -51,7 +51,7 @@
- name: "Gather platform info"
nxos_command:
commands: ['sh inventory | json']
provider: "{{ cli }}"
connection: network_cli
register: nxos_inventory_output
- set_fact: platform="{{ nxos_inventory_output.stdout_lines[0]['TABLE_inv']['ROW_inv'][0]['productid'].split('-')[0] }}"