-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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: Add fixed_ips computed attribute to port resource #12807
Conversation
I'm not 100% happy with the name I don't want to use Suggestions are appreciated! :) |
386c284
to
3503212
Compare
Alright, having mulled it over for a few hours, I think ready for review. |
Really no way with the Terraform language to use the fixed_ip attributes? |
@sebastien-prudhomme Not to my knowledge. Because users can specify a Fixed IP in any order and because Neutron will return those IPs in a different order, ordered lists can't be used. The "hash" form is the only way I know of. This proposed feature will resume the previous method you were using, you would just need to add an "s" to the lines you were using it. :) |
This commit adds the `fixed_ips` attribute to the openstack_networking_port_v2 resource. This contains all of the port's Fixed IPs returned by the Networking v2 API.
3503212
to
992e712
Compare
I've been testing this with a bunch of scenarios and the change to It seems like there's a conflict satisfying all port/IP scenarios:
It looks like Back to the drawing board on this one... |
I've created issue #13052 to better track this. I'm going to close this PR. |
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. |
This commit adds the
fixed_ips
attribute to theopenstack_networking_port_v2 resource. This contains all of the port's
Fixed IPs returned by the Networking v2 API.
/cc @sebastien-prudhomme