netascode / ansible-dc-vxlan

Ansible Collection for configuring a VXLAN Fabric using Direct to Controller (DTC) or Direct To Device (DTD) workflows.
https://galaxy.ansible.com/ui/repo/published/cisco/nac_dc_vxlan/
MIT License
7 stars 9 forks source link

Add logic to handle management ipv4/ipv6 address in "Build Fabric Switch Inventory List From Template" #36

Closed rrahimm closed 6 months ago

rrahimm commented 8 months ago

image

error when only ipv6 address is used.

image

TASK [cisco.nac_dc_vxlan.common : Build Fabric Switch Inventory List From Template] ************************************************* An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'management_ipv4_address' fatal: [netascode_fabric2]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'management_ipv4_address'"}

vjoshevs commented 8 months ago

@rrahimm this is now updated in PR, waiting for IPv6 devices in lab so we can tested update ndfc_inventory.j2 to include ipv6 and deploy false netascode/ansible-dc-vxlan-archived#48

juburnet commented 6 months ago

According to Rameez, good to close due to PR above