nxos_command and nxos_config fix (#29940)
* fix nxos_command nxapi test output Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit 9dee5c65ce88912b1bd28e75d85dd7331420f823) * nxos_config CI fix Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit 8810a7e58457b35fe269101075986d57030342f4)
This commit is contained in:
parent
8fd3ce0fec
commit
7d982f9225
5 changed files with 11 additions and 10 deletions
|
@ -41,8 +41,9 @@
|
||||||
|
|
||||||
- name: "Run show running-config bgp - should pass"
|
- name: "Run show running-config bgp - should pass"
|
||||||
nxos_command:
|
nxos_command:
|
||||||
commands:
|
commands:
|
||||||
- sh running-config bgp
|
- command: sh running-config bgp
|
||||||
|
output: text
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines:
|
lines:
|
||||||
- "snmp-server contact ansible"
|
- "snmp-server contact ansible"
|
||||||
- "hostname {{ inventory_hostname_short }}"
|
- "hostname switch"
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines:
|
lines:
|
||||||
- "no snmp-server contact"
|
- "no snmp-server contact"
|
||||||
- "hostname {{ inventory_hostname_short }}"
|
- "hostname switch"
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines:
|
lines:
|
||||||
- "snmp-server contact ansible"
|
- "snmp-server contact ansible"
|
||||||
- "hostname {{ inventory_hostname_short }}"
|
- "hostname switch"
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines:
|
lines:
|
||||||
- "no snmp-server contact"
|
- "no snmp-server contact"
|
||||||
- "hostname {{ inventory_hostname_short }}"
|
- "hostname switch"
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines:
|
lines:
|
||||||
- "snmp-server contact ansible"
|
- "snmp-server contact ansible"
|
||||||
- "hostname {{ inventory_hostname_short }}"
|
- "hostname switch"
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines:
|
lines:
|
||||||
- "no snmp-server contact ansible"
|
- "no snmp-server contact ansible"
|
||||||
- "hostname {{ inventory_hostname_short }}"
|
- "hostname switch"
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines:
|
lines:
|
||||||
- "snmp-server contact ansible"
|
- "snmp-server contact ansible"
|
||||||
- "hostname {{ inventory_hostname_short }}"
|
- "hostname switch"
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines:
|
lines:
|
||||||
- "no snmp-server contact ansible"
|
- "no snmp-server contact ansible"
|
||||||
- "hostname {{ inventory_hostname_short }}"
|
- "hostname switch"
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue