mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07: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'):
|
if response['ins_api'].get('outputs'):
|
||||||
output = response['ins_api']['outputs']['output']
|
output = response['ins_api']['outputs']['output']
|
||||||
for item in to_list(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:
|
if return_error:
|
||||||
result.append(item)
|
result.append(item)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -11,6 +11,12 @@
|
||||||
state: present
|
state: present
|
||||||
connection: network_cli
|
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
|
# Gather the list of interfaces on this device and make the list
|
||||||
# available for integration tests that need them.
|
# available for integration tests that need them.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue