-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TASK Add NDFC Fabric Devices <name> fails for IPv6 Devices #251
Comments
cisco.dcnm.dcnm_inventory fails in 'def get_diff_merge()' in line 905:
In case of IPv6 addresses, 'want_c["switches"]' is 0:
In case of IPv4 addresses, 'want_c["switches"]' contains a list of switches as expected:
|
Root Cause Analysis
Workaround As a workaround, simply use IPv6 addresses without double colons in the vxlan.topology.switches configuration data. |
Thanks for the RCA @marehler! We are working to update the module to handle this case |
There is another, closely related issue. The switch role assignment fails for IPv6 devices. In dcnm_inventory.py, also 'def assign_role()' compares the IPv6 addresses in the inventory with the IPv6 addresses received from the switch. This fails too if the inventory includes IPv6 addresses using double colons "::" but the IPv6 addresses in the response data has zeros ":0:" instead. |
IPv6 address inventory failure. NDFC returns ipv6 address with unabbrevated form (e.g) 2001:0:0:12 instead of 2001::12 for below requests. /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/lanConfig/getLanSwitchCredentials "ipAddress": "2001:420:448b:8006:fab2:0:0:13", /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/hello/inventory/test-reachability in netascode/ansible-dc-vxlan#251
Ansible Version
Ansible Collection Versions
Cisco NDFC Version
Cisco NX-OS Version
Which role is this issue related to?
cisco.nac_dc_vxlan.dtc.create
Which section of the data model is this issue related to?
vxlan.topology
Expected Behavior
Devices with IPv6 management addresses are discovered.
Actual Behavior
Ansible Playbook
Steps to Reproduce
Use a topology with IPv6 management addresses only. Example topology_switches.yaml:
This is a bug of the cisco.dcnm.dcnm_inventory module. Discovery using IPv6 management addresses works fine via the NDFC GUI as well as via API.
Relevant Debug Output
No response
The text was updated successfully, but these errors were encountered: