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

Initialize VMC NSX version to 3.0.0 #531

Merged
merged 3 commits into from
Dec 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nsxt/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ func configureNsxtClient(d *schema.ResourceData, clients *nsxtClients) error {
vmcToken := d.Get("vmc_token").(string)

if len(vmcToken) > 0 {
initNSXVersionVMC()
return nil
}

Expand Down
5 changes: 5 additions & 0 deletions nsxt/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,11 @@ func initNSXVersion(nsxClient *api.APIClient) error {
return err
}

func initNSXVersionVMC() {
// TODO: find a way to retrieve NSX version on VMC
nsxVersion = "3.0.0"
}

func nsxVersionLower(ver string) bool {

requestedVersion, err1 := version.NewVersion(ver)
Expand Down