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

Error when multiple matching if-maps *but user has specified one* #985

Closed
chrismarget-j opened this issue Dec 6, 2024 · 0 comments · Fixed by #986
Closed

Error when multiple matching if-maps *but user has specified one* #985

chrismarget-j opened this issue Dec 6, 2024 · 0 comments · Fixed by #986

Comments

@chrismarget-j
Copy link
Collaborator

This code is a problem:

https://github.com/Juniper/terraform-provider-apstra/blob/423b0e92b9b863684ad2fa6aef1de21ddceb10d5/apstra/blueprint/device_allocation.go#L305C1-L308C1

When the user has specified a specific device and the interface map they intend to use, we should not attempt a multi-path match to the device profile, but rather specify the expected interface-map in our graph query.

Perhaps a conditional assertion of the interface map ID when constructing the graph query?

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