mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
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:
parent
a0ad7ffedf
commit
c371ed8d30
199 changed files with 1589 additions and 684 deletions
|
@ -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] }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue