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 support for 'edge_cluster_id' specification in VDC #921

Merged
merged 15 commits into from
Nov 15, 2022

Conversation

Didainius
Copy link
Collaborator

@Didainius Didainius commented Oct 25, 2022

This PR adds an option to specify edge_cluster_id for NSX-T vcd_org_vdc resource. This is a prerequisite for DHCP management in NSX-T Isolated networks. Next step will be to align vcd_nsxt_network_dhcp resource with latest VCD features (issues #907 and #885 are also related to bumping up vcd_nsxt_network_dhcp as VCD functionality was very limited when we introduced it)
Note. Field edge_cluster_id always works for resources as only a provider user can create VDCs. The data source user might not always have access to read Edge Cluster configuration. For this reason the data source attempts to read value but ignores that error if it got an error in response. (data source doc is also updated with information about behavior of this attribute)

Data source vcd_nsxt_edge_cluster used for Edge Cluster lookup is also improved to support better filtering - previously it was bound to VDC lookup only which wasn't suitable as there is no VDC yet when creating vcd_org_vdc. Now it supports lookup by different filtering scopes as provided by VCD - vdc_id, vdc_group_id and provider_vdc_id.

Also a new config parameter nsxtEdgeCluster is introduced to supply tests with existing NSX-T Edge Cluster name.

Screenshot of configuration location in UI VCD 10.4.0
image

Partly related to:

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]>
Signed-off-by: Dainius Serplis <[email protected]>
Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius marked this pull request as ready for review October 25, 2022 10:57
Signed-off-by: Dainius Serplis <[email protected]>
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.

First review, found some little things to clarify:

vcd/datasource_vcd_nsxt_edge_cluster.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_edge_cluster.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_edge_cluster.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_nsxt_edge_cluster.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_org_vdc.go Outdated Show resolved Hide resolved
vcd/datasource_vcd_org_vdc.go Outdated Show resolved Hide resolved
Signed-off-by: Dainius Serplis <[email protected]>
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, and nice move in favor of vdc_id, vdc_group_id and provider_vdc_id fields!

Just one ask for PR description.

.changes/v3.8.0/921-improvements.md Show resolved Hide resolved
website/docs/d/org_vdc.html.markdown Outdated Show resolved Hide resolved
Signed-off-by: Dainius Serplis <[email protected]>
@Didainius Didainius removed the request for review from dataclouder November 15, 2022 10:39
@Didainius Didainius merged commit be3fb9a into vmware:main Nov 15, 2022
@Didainius Didainius deleted the 255--edge-cluster-support branch November 15, 2022 10:39
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.

3 participants