nxos_facts test lldp feature and fix nxapi check_rc (#44104)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/44106/head
Trishna Guha 6 years ago committed by GitHub
parent f87b156423
commit 43ae240431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -341,7 +341,7 @@ class Nxapi:
if response['ins_api'].get('outputs'):
output = response['ins_api']['outputs']['output']
for item in to_list(output):
if check_status and item['code'] != '200':
if check_status is True and item['code'] != '200':
if return_error:
result.append(item)
else:

@ -11,6 +11,12 @@
state: present
connection: network_cli
- name: Enable lldp
nxos_config:
lines:
- feature lldp
ignore_errors: yes
# Gather the list of interfaces on this device and make the list
# available for integration tests that need them.
#

Loading…
Cancel
Save