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
|
@ -42,7 +42,8 @@
|
|||
- name: "Run show running-config bgp - should pass"
|
||||
nxos_command:
|
||||
commands:
|
||||
- sh running-config bgp
|
||||
- command: sh running-config bgp
|
||||
output: text
|
||||
provider: "{{ nxapi }}"
|
||||
register: result
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
nxos_config:
|
||||
lines:
|
||||
- "snmp-server contact ansible"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
- "hostname switch"
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
nxos_config:
|
||||
lines:
|
||||
- "no snmp-server contact"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
- "hostname switch"
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
nxos_config:
|
||||
lines:
|
||||
- "snmp-server contact ansible"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
- "hostname switch"
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
nxos_config:
|
||||
lines:
|
||||
- "no snmp-server contact"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
- "hostname switch"
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
nxos_config:
|
||||
lines:
|
||||
- "snmp-server contact ansible"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
- "hostname switch"
|
||||
provider: "{{ nxapi }}"
|
||||
match: none
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
nxos_config:
|
||||
lines:
|
||||
- "no snmp-server contact ansible"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
- "hostname switch"
|
||||
provider: "{{ nxapi }}"
|
||||
match: none
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
nxos_config:
|
||||
lines:
|
||||
- "snmp-server contact ansible"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
- "hostname switch"
|
||||
provider: "{{ nxapi }}"
|
||||
match: none
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
nxos_config:
|
||||
lines:
|
||||
- "no snmp-server contact ansible"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
- "hostname switch"
|
||||
provider: "{{ nxapi }}"
|
||||
match: none
|
||||
|
||||
|
|
Loading…
Reference in a new issue