go-vmware-nsxt icon indicating copy to clipboard operation
go-vmware-nsxt copied to clipboard

Host Switch Profile

Open praveenpr78 opened this issue 3 years ago • 1 comments

Describe the bug

Hi Team, We are from HPE and we have a requirement to automate the configuration of NSXT using Terraform. We are using this provider, https://registry.terraform.io/providers/vmware/nsxt/latest which refers to the Go library for Vmware NSX-T REST APIs in https://github.com/vmware/go-vmware-nsxt.

We were successfull in adding resources for transport zone and compute manager but while adding a resource for host switch profile we are hitting a blocker in the go library.

go-vmware-nsxt-master/network_transport_api (line no. 345) has the input from the struct manager.BaseHostSwitchProfile as shown below func (a *NetworkTransportApiService) CreateHostSwitchProfile(ctx context.Context, baseHostSwitchProfile manager.BaseHostSwitchProfile) (manager.BaseHostSwitchProfile, *http.Response, error) {

But, manager.BaseHostSwitchProfile does not have the required properties All the required properties are defined in manager.UplinkHostSwitchProfile Also BaseHostSwitchProfile does not have any reference to UplinkHostSwitchProfile host_switch_profile.zip

Please let us know how to get over this issue

Reproduction steps

1.
2.
3.
...

Expected behavior

NA

Additional context

No response

praveenpr78 avatar Mar 27 '22 06:03 praveenpr78

Hi @praveenpr78, I would suggest you consider using the new sdk https://github.com/vmware/vsphere-automation-sdk-go/tree/master/services/nsxt-mp. This sdk is mostly obsolete and is not actively updated with new NSX features and bugfixes, while the new sdk is mostly up-to-date.

annakhm avatar Mar 28 '22 17:03 annakhm