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

Improve query which discovers device profile to handle dp clones #631

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

chrismarget-j
Copy link
Collaborator

@chrismarget-j chrismarget-j commented Apr 3, 2024

Under some circumstances (outlined in #625), Apstra may double-import a device profile from the Global Catalog (aos_library). The behavior is documented in AOS-45682 and corrected in PR 29925.

Those situations break the apstra_datacenter_device_allocation resource's assumption that a given Device Profile will appear only once in the graph DB.

This PR improves the query used for discovering the correct Device Profile node so that we find the correct node even when multiple DP with identical device_profile_id attributes appear in the graph db.

No tests exist for this behavior - testing this situation requires agents - something we can't currently emulate with our automated test setup.

Closes #625

@chrismarget-j chrismarget-j merged commit c7a81e2 into main Apr 3, 2024
1 check passed
@chrismarget-j chrismarget-j deleted the bug/625-ld-clone branch April 3, 2024 18:34
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.

apstra_datacenter_device_allocation - device profile issue
2 participants