-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add NSX-T VDC Group support for vcd_nsxt_ip_set #809
Conversation
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
2d1ea0a
to
ff9ea1d
Compare
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
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.
If you can add this item to the list in VDC Group guides page https://github.com/vmware/terraform-provider-vcd/blob/main/website/docs/guides/vdc_groups.html.markdown?plain=1#L65-L68
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
added |
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
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.
LGTM!
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.
Manual testing for migrations of 3.5.1 -> 3.6.0 with same configuration and then adjusting to new format looked to be working without recreation.
Would be nice to the test @lvirbalas mentioned just to have it covered which can take inspiration from TestAccVcdNetworkRoutedV2InheritedVdc
how to patch
vdc
field for testing.
IP Sets have similar unit test |
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 did some thorough manual testing and everything worked as expected.
Thanks!
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Dep: vmware/go-vcloud-director#451
This PR adds VDC Group support for:
vdc
field and instead inherits parent VDC / VDC Group from NSX-T Edge Gateway)There is a major difference in how these resources support it. IP Set follows the location of parent Edge Gateway ID - move together to VDC Group and back.
Note. The goal of this PR is to preserve backward compatibility and not break anything for existing users.
vdc
fields are deprecated in favor ofedge_gateway_id
.Additionally:
Ran tests on 10.3.1 and 10.2.2 and upgrade tests