vmware / go-vcloud-director

Golang SDK for VMware Cloud Director
Other
80 stars 76 forks source link

Add support for VDC Network Profile configuration #512

Closed Didainius closed 1 year ago

Didainius commented 2 years ago

This PR adds support for VCD Network Profile configuration. It is a prerequisite of https://github.com/vmware/terraform-provider-vcd/pull/921. VDC Network Profile configuration is required so that one can assign NSX-T Edge Cluster to VDC. This, in turn, gives the chance to configure DHCP service for NSX-T Isolated Org VDC networks.

The configuration itself is applied for VDC. It has a few rudimentary settings for NSX-V, which are not the scope of this PR and not tested (still should be working for those who can benefit from them in NSX-V world).

The code itself contains API elevation for API 36.2+ (VCD 10.3.2+) where two new configurations appeared - vApp and VDC Segment Profile templates. They also remain untested here as we don't yet have support for them in SDK and the goal of this PR is to add support for NSX-T Edge Cluster assignment to VDC (field ServicesEdgeCluster)

Additionally code for retrieving NSX-T Edge Clusters was improved: