mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
nxos_facts test lldp feature and fix nxapi check_rc (#44104)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
f87b156423
commit
43ae240431
2 changed files with 7 additions and 1 deletions
|
@ -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…
Reference in a new issue