Skip to content

Commit

Permalink
Fix SNI paths assignment in LB virtual server
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Khmelnitsky <akhmelnitsky@vmware.com>
  • Loading branch information
annakhm committed Apr 25, 2024
1 parent 2c9f162 commit 03cc87b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nsxt/resource_nsxt_policy_lb_virtual_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -909,12 +909,14 @@ func getPolicyClientSSLBindingFromSchema(d *schema.ResourceData) *model.LBClient
crlList := interface2StringList(data["crl_paths"].([]interface{}))
certPath := data["default_certificate_path"].(string)
profilePath := data["ssl_profile_path"].(string)
sniList := interface2StringList(data["sni_paths"].([]interface{}))
profileBinding := model.LBClientSslProfileBinding{
CertificateChainDepth: &chainDepth,
ClientAuth: &clientAuth,
ClientAuthCaPaths: caList,
ClientAuthCrlPaths: crlList,
DefaultCertificatePath: &certPath,
SniCertificatePaths: sniList,
SslProfilePath: &profilePath,
}

Expand All @@ -936,6 +938,7 @@ func setPolicyClientSSLBindingInSchema(d *schema.ResourceData, binding *model.LB
}
elem["ca_paths"] = binding.ClientAuthCaPaths
elem["crl_paths"] = binding.ClientAuthCrlPaths
elem["sni_paths"] = binding.SniCertificatePaths
elem["default_certificate_path"] = binding.DefaultCertificatePath
if binding.SslProfilePath != nil {
elem["ssl_profile_path"] = *binding.SslProfilePath
Expand Down

0 comments on commit 03cc87b

Please sign in to comment.