Open sky-joker opened 2 months ago
This also happens with cisco.cml.inventory (cml_inventory.py file).
I made these changes in the following locations:
inventory/cml_inventory.py: Line 206 modules/cml_lab_facts.py: Line 105
for interface in node.interfaces():
no_ips_list = ["external_connector","unmanaged_switch"]
if node.state == 'BOOTED' and node.node_definition not in no_ips_list:
I'm sure you'll want to clean up the var name, but this allows my external_connector and unmanaged_switch to be found and added to the inventory without the script trying to discover IPs.
I can't use the wait param on the clean playbook until this is fixed
SUMMARY
I tried to gather lab information from my CML2 environment, but the following error occurred, preventing me from doing so.
I created the lab structure shown below.
The configuration for
ext-conn-0
is the system bridge.COMPONENT NAME
ANSIBLE AND LIBRARIES VERSION
COLLECTION VERSION
latest
OS/ENVIRONMENT
CML2.7
CONFIGURATION
STEPS TO REPRODUCE
I created the playbook and run it.
EXPECTED RESULTS
I expected to gather the lab information.
ACTUAL RESULTS
The following error occurred:
When
ext-conn-0
does not exist, the module works correctly.