-
Notifications
You must be signed in to change notification settings - Fork 180
Allowed address pairs support for Neutron Port #488
Conversation
DeviceID string | ||
DeviceOwner string | ||
SecurityGroups []string | ||
AllowedAddressPairs interface{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since the structure of AllowedAddressPairs
is known, it would be better to specify this as type []map[string]string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just following the pattern currently in place for FixedIPs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why we used an interface{}
for the FixedIPs
. We may not have found documentation for them when that was written (i.e. is it an array of objects, an array of strings, something else, etc). Regardless, let's use []AddressPair
if we know that's the format. Same thing on line 107.
Assuming this looks good to merge, I'll add support for this option on Port creation as well. Just wanted to get a complete, working version of update through review before going too far down the rabbit hole on this. |
b9aa632
to
5629171
Compare
Any update on this? We would really like to see allowed address pairs added to gophercloud such that we can provision via Terraform. |
@jrperritt - Any pointers you could give me about getting this to a mergeable point would be appreciated. |
It looks good aside from the 2 minor type changes. I'm not concerned with the unit tests failing on the Go tip branch. |
Thanks for the feedback @jrperritt I'll work to address it. |
…tron Port update operation
bac04f1
to
a371c0e
Compare
Hi, Like @nmische, I came here looking for this feature since it's required in order to update the Terraform OpenStack provider. Since this ticket hasn't been updated in 20 days I was wondering if there is anything I could do to help get this merged? Cheers, |
@nmische and @roobert and @jrperritt - Finally got around to making this change. Appreciate the reminder and feedback. |
Thanks @trumant! Hopefully @jrperritt will be able to merge this now. |
@trumant looks great. +2 |
Allowed address pairs support for Neutron Port
This is my first contribution to the project so very open to and looking forward to any constructive feedback