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
When running the solution, I get the following error:
Device: ios-xe-mgmt.cisco.com
Interface: GigabitEthernet2
Traceback (most recent call last):
File "netconf_configure_ips.py", line 62, in <module>
check_ip(device)
File "/Users/mbrainar/coding/DevNet/dnav3-code/intro-mdp/mission01/netconf_functions.py", line 81, in check_ip
ipv4["ip"], ipv4["config"]["prefix-length"]
TypeError: list indices must be integers or slices, not str
I believe it is because the instance of ios-xe-mgmt.cisco.com has multiple addresses configured on GigabitEthernet2:
Just an FYI, but the openconfig model in theory allows multiple IP addresses on a subinterface. The first should be assigned as the primary IP and other should be added as secondary IP addresses. However, the problem above seems to be more about a Python coding error.
When running the solution, I get the following error:
I believe it is because the instance of ios-xe-mgmt.cisco.com has multiple addresses configured on GigabitEthernet2:
The text was updated successfully, but these errors were encountered: