You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to gather lab information from my CML2 environment, but the following error occurred, preventing me from doing so.
(snip)
File \"/xxx/venv/lib/python3.9/site-packages/httpx/_models.py\", line 759, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://100.64.17.16/api/v0/labs/085f1bc7-a471-4326-b0cf-3e90de055f4f/nodes/a96abfcf-061c-484e-b308-1f61d830488d/layer3_addresses'
Can't get L3 addresses of an external_connector.
", "module_stdout": "", "msg": "MODULE FAILURE
See stdout/stderr for the exact error", "rc": 1}
I created the lab structure shown below.
[ext-conn-0] -- G0/0[iosvl2-0]
The configuration for ext-conn-0 is the system bridge.
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://100.64.17.16/api/v0/labs/085f1bc7-a471-4326-b0cf-3e90de055f4f/nodes/a96abfcf-061c-484e-b308-1f61d830488d/layer3_addresses'
Can't get L3 addresses of an external_connector.
When ext-conn-0 does not exist, the module works correctly.
The text was updated successfully, but these errors were encountered:
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.
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.The text was updated successfully, but these errors were encountered: