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

Host Switch Profile #49

Open
praveenpr78 opened this issue Mar 27, 2022 · 1 comment
Open

Host Switch Profile #49

praveenpr78 opened this issue Mar 27, 2022 · 1 comment
Labels

Comments

@praveenpr78
Copy link

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

@annakhm
Copy link
Contributor

annakhm commented Mar 28, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants