Skip to content
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

Issues #251 and #264 in ansible solutions. #361

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

prabahal
Copy link

@prabahal prabahal commented Jan 7, 2025

IPv6 address inventory failure.
NDFC returns ipv6 address in unabbrevated form (e.g) 2001:0:0:12 instead of 2001::12 for below requests. It mismatches value in inventory and NDFC response.
/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

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
@@ -38,4 +38,4 @@
- 'controller_version != "Unable to determine controller version"'
tags: sanity

- { include: dcnm.yaml, tags: ['dcnm'] }
- { include_tasks: dcnm.yaml, tags: ['dcnm'] }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I merged #354 which introduced a merge conflict for this file.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved the merge conflict

or isinstance(ipaddress.ip_address(ip_addr), ipaddress.IPv4Address)):
sw_ip = str(ipaddress.ip_address(ip_addr))
except ValueError:
sw_ip = ip_addr
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Help me understand the intent here. Why are we just setting sw_ip to the value that was passed in if we encounter an error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants