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 Org VDC network support for NSX-T VDC Groups #443

Merged
merged 13 commits into from
Mar 24, 2022

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Mar 7, 2022

This PR works to add support for NSX-T VDC Groups in Org VDC networks (routed, isolated and imported).

It also adds a new type AnyTypeEdgeGateway and methods AdminOrg.GetAnyTypeEdgeGatewayById, Org.GetAnyTypeEdgeGatewayById, AnyTypeEdgeGateway.IsNsxt, AnyTypeEdgeGateway.GetNsxtEdgeGateway.

Type AnyTypeEdgeGateway uses the same structure OpenAPIEdgeGateway which NSX-T Cousin type uses, but AnyTypeEdgeGateway Get methods will retrieve both - NSX-T and NSX-V Edge gateways. This is required as a convenience functions of Org VDC network routed network (because it can be backed by NSX-T or NSX-V).

Also adds some additional convenience functions: and methods:

  • VdcGroup.GetNsxtImportableSwitchByName (similar to Vdc.GetNsxtImportableSwitchByName)
  • Org.GetOpenApiOrgVdcNetworkByNameAndOwnerId
  • VdcGroup.GetOpenApiOrgVdcNetworkByName
  • VdcGroup.GetAllOpenApiOrgVdcNetworks
  • VdcGroup.GetCapabilities
  • VdcGroup.IsNsxt

Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius force-pushed the pr-vdc-grp-org-network branch from 3695df7 to b189add Compare March 7, 2022 14:43
Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius changed the title Add routed network support for NSX-T VDC Groups Add Org VDC network support for NSX-T VDC Groups Mar 9, 2022
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius requested review from dataclouder and removed request for dataclouder March 21, 2022 11:42
@Didainius Didainius marked this pull request as ready for review March 21, 2022 11:45
@Didainius Didainius removed the request for review from dataclouder March 21, 2022 11:45
Copy link
Contributor

@vbauzys vbauzys left a comment

Choose a reason for hiding this comment

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

LGTM. Just a few small improvements needed

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 nitpicks. Very good jobs @Didainius

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.

Final ask, please update PR description with the new AnyType prefix too.
Thank you for the refactoring!

@Didainius
Copy link
Collaborator Author

Final ask, please update PR description with the new AnyType prefix too. Thank you for the refactoring!

Done

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.

LGTM!!! Approved 👍

@Didainius Didainius merged commit e9de703 into vmware:main Mar 24, 2022
@Didainius Didainius deleted the pr-vdc-grp-org-network branch March 24, 2022 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants