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:
Trishna Guha 2017-09-12 10:54:15 +05:30 committed by Toshio Kuratomi
parent 8fd3ce0fec
commit 7d982f9225
5 changed files with 11 additions and 10 deletions

View file

@ -41,8 +41,9 @@
- name: "Run show running-config bgp - should pass"
nxos_command:
commands:
- sh running-config bgp
commands:
- command: sh running-config bgp
output: text
provider: "{{ nxapi }}"
register: result

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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