Skip to content

Commit

Permalink
Merge pull request #1168 from vmware/tnp-v6-error
Browse files Browse the repository at this point in the history
Return an error message for Ipv6 assignment in TNP
  • Loading branch information
annakhm authored Apr 2, 2024
2 parents d5cb31f + e5ed90b commit 6eafd85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nsxt/resource_nsxt_edge_transport_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,12 @@ func setHostSwitchSpecInSchema(d *schema.ResourceData, spec *data.StructValue, n
}
swEntry := entry.(model.StandardHostSwitchSpec)
for _, sw := range swEntry.HostSwitches {

// TODO - remove this when SDK is updated with NSX 4.1.2
if sw.IpAssignmentSpec == nil {
return fmt.Errorf("Ipv6 assignments are not supported yet")
}

elem := make(map[string]interface{})
elem["host_switch_id"] = sw.HostSwitchId
elem["host_switch_name"] = sw.HostSwitchName
Expand Down

0 comments on commit 6eafd85

Please sign in to comment.