diff --git a/docs/cisco.iosxr.iosxr_facts_module.rst b/docs/cisco.iosxr.iosxr_facts_module.rst index 3525556d3..d4565e633 100644 --- a/docs/cisco.iosxr.iosxr_facts_module.rst +++ b/docs/cisco.iosxr.iosxr_facts_module.rst @@ -381,7 +381,7 @@ Common return values are documented `here when interfaces is configured -
The list of LLDP neighbors from the remote device
+
The list of LLDP and CDP neighbors from the remote device. If both, CDP and LLDP neighbor data is present on one port, CDP is preferred.

diff --git a/tests/unit/modules/network/iosxr/fixtures/show_cdp_neighbors_detail b/tests/unit/modules/network/iosxr/fixtures/show_cdp_neighbors_detail index 0e32e30c9..f1ab85923 100644 --- a/tests/unit/modules/network/iosxr/fixtures/show_cdp_neighbors_detail +++ b/tests/unit/modules/network/iosxr/fixtures/show_cdp_neighbors_detail @@ -13,4 +13,4 @@ Copyright (c) 1986-1997 by Cisco Systems, Inc. Compiled Mon 07-Apr-97 19:51 by dschwart -Total cdp entries displayed : 1 \ No newline at end of file +Total cdp entries displayed : 1 diff --git a/tests/unit/modules/network/iosxr/test_iosxr_facts.py b/tests/unit/modules/network/iosxr/test_iosxr_facts.py index ab0275ab2..f8b0a3ae8 100644 --- a/tests/unit/modules/network/iosxr/test_iosxr_facts.py +++ b/tests/unit/modules/network/iosxr/test_iosxr_facts.py @@ -22,7 +22,9 @@ __metaclass__ = type import json + from ansible.module_utils.six import assertCountEqual + from ansible_collections.cisco.iosxr.plugins.modules import iosxr_facts from ansible_collections.cisco.iosxr.tests.unit.compat.mock import patch from ansible_collections.cisco.iosxr.tests.unit.modules.utils import set_module_args