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

Add NSX-T VDC Group support for vcd_nsxt_security_group #814

Merged
merged 10 commits into from
Apr 6, 2022

Conversation

vbauzys
Copy link
Contributor

@vbauzys vbauzys commented Apr 1, 2022

Dep: vmware/go-vcloud-director#456

This PR adds VDC Group support for:

  • vcd_nsxt_security_group (deprecates 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. Security group 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 of edge_gateway_id.

Additionally:

Ran tests on 10.3.1 and 10.2.2 and upgrade tests

…oups

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>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
@vbauzys vbauzys marked this pull request as ready for review April 4, 2022 10:34
@vbauzys vbauzys self-assigned this Apr 4, 2022
@vbauzys vbauzys removed the request for review from dataclouder April 4, 2022 10:34
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just submitting a few cosmetic things to fix as I am going deeper look into it.

vcd/datasource_vcd_nsxt_security_group.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_security_group.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_security_group.go Outdated Show resolved Hide resolved
Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@mikeletux mikeletux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small things.

Tested and works great! Thanks for implementing this! 🚀

vcd/datasource_vcd_nsxt_security_group.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_security_group.go Show resolved Hide resolved
Copy link
Contributor

@mikeletux mikeletux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved! Thanks!

Copy link
Collaborator

@adambarreiro adambarreiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I did a lot of manual testing including migration from old configuration, tossing parent edge gateway in and out of VDC groups and creating 50+ security groups while moving edge gateway in and out. It all looks to be good.🤞🏻

Signed-off-by: Vaidotas Bauzys <vbauzys@vmware.com>
@vbauzys vbauzys merged commit 86f8c4b into vmware:main Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants