-
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_network_routed_v2, vcd_network_isolated_v2 and vcd_nsxt_network_imported #801
Conversation
d5076fd
to
d7e48b0
Compare
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
d7e48b0
to
10650b0
Compare
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
28eac9a
to
c80ad82
Compare
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
c80ad82
to
de245dd
Compare
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
27c37c1
to
b2beb81
Compare
b2beb81
to
0798941
Compare
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
0798941
to
f801e89
Compare
Signed-off-by: Dainius Serplis <dserplis@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.
Looks very prommising
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@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.
Thank you for all the tuning!
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.
Looks great to me! I'm approving the PR.
Note: Probably I'll do another go in the review as I may have missed something in the first one, and play around with manual tests
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. Let's try to have smaller PR's in the future :)
No doubt about that. I dont like it myself. |
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.
LA(Awesome)TM!
My manual testing was especially focused on backwards compatibility, moving from vdc
to owner_id
and everything worked as expected.
Also moved back and forth from single VDC to VDC groups and also everything worked as a charm!
It's true that in the future smaller PRs would be great 😄
Thanks for this awesome implementation!
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
Signed-off-by: Dainius Serplis <dserplis@vmware.com>
This PR adds VDC Group support for:
vcd_network_routed_v2
(deprecatesvdc
field and instead inherits parent VDC / VDC Group from NSX-T Edge Gateway)vcd_network_isolated_v2
(deprecatesvdc
field in favor ofowner_id
which can be VDC and VDC Group)vcd_nsxt_network_imported
(deprecatesvdc
field in favor ofowner_id
which can be VDC and VDC Group)There is a major difference how these resources support it. Routed networks follow the location of parent Edge Gateway ID - move together to VDC Group and back.
It is worth reading a new Guides doc page at first (https://github.com/vmware/terraform-provider-vcd/blob/b2beb8152cee15627e3220003498244fd5379223/website/docs/guides/vdc_groups.html.markdown) which outlines details done so far.
Locking mechanism has changed:
org:vdc:name
format.lockIfOwnerIsVdcGroup(d)
andunLockIfOwnerIsVdcGroup
are introduced to only lock onownerRef
if it is VDC Group (this is required for imported and isolated networks)vcd_network_routed_v2
because if it is a member of simple VDC - lock must be acquired on Edge Gateway, but if it is a member of VDC Group - a lock must be acquired on VDC Group.Note. The goal of this PR is to preserve backwards compatibility and not break anything for existing users.
vdc
fields are deprecated in favor ofowner_id
(for isolated network) andedge_gateway_id
(for routed network), but they still work.Additionally:
Ran acceptance, org user acceptance, binary and upgrade tests with tags
network nsxt vdcGroup edgegateway