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

provider/openstack: Fix Ordering of Port Allowed Address Pairs #10250

Merged
merged 1 commit into from
Dec 5, 2016

Conversation

jtopjian
Copy link
Contributor

This commit changes allowed_address_pairs from a TypeList to a TypeSet
allowing for arbitrary ordering. This solves the issue where a user
specifies an address pair one way and OpenStack returns a different
order.

Fixes #9680

Side note: while this resolves the above issue, I suspect a better longer-term solution is to create a dedicated resource for allowed address pairs. This will allow more flexible/dynamic creation of port pairs.

This commit changes allowed_address_pairs from a TypeList to a TypeSet
allowing for arbitrary ordering. This solves the issue where a user
specifies an address pair one way and OpenStack returns a different
order.
@stack72
Copy link
Contributor

stack72 commented Dec 5, 2016

Hey @jtopjian

Are there any backwards incompatibilities with this change?

P.

@jtopjian
Copy link
Contributor Author

jtopjian commented Dec 5, 2016

@stack72 Nope. This should be transparent to users. I actually forgot about this one. If the code looks good to you, it's good to go. :)

@stack72
Copy link
Contributor

stack72 commented Dec 5, 2016

LGTM then :) Thanks!

@stack72 stack72 merged commit 1c9853e into hashicorp:master Dec 5, 2016
gusmat pushed a commit to gusmat/terraform that referenced this pull request Dec 6, 2016
…corp#10250)

This commit changes allowed_address_pairs from a TypeList to a TypeSet
allowing for arbitrary ordering. This solves the issue where a user
specifies an address pair one way and OpenStack returns a different
order.
@jtopjian jtopjian deleted the openstack-port-aap-ordering branch March 23, 2017 16:09
@ghost
Copy link

ghost commented Apr 15, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openstack_networking_port_v2 allowed_address_pairs are sorted
2 participants