Skip to content

Commit

Permalink
Merge pull request #1124 from ksamoray/edge_import_sw
Browse files Browse the repository at this point in the history
Fix edge_transport_node import issue
  • Loading branch information
ksamoray authored Feb 20, 2024
2 parents a1e69fb + 4f82a23 commit a0354fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsxt/resource_nsxt_edge_transport_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,6 @@ func setHostSwitchSpecInSchema(d *schema.ResourceData, spec *data.StructValue, n
if err != nil {
return err
}
elem["is_migrate_pnics"] = sw.IsMigratePnics
var pnics []map[string]interface{}
for _, pnic := range sw.Pnics {
e := make(map[string]interface{})
Expand All @@ -1424,6 +1423,7 @@ func setHostSwitchSpecInSchema(d *schema.ResourceData, spec *data.StructValue, n
}
elem["pnic"] = pnics
if nodeType == nodeTypeHost {
elem["is_migrate_pnics"] = sw.IsMigratePnics
elem["host_switch_mode"] = sw.HostSwitchMode
elem["uplink"] = setUplinksFromSchema(sw.Uplinks)
var tnpSubConfig []map[string]interface{}
Expand Down

0 comments on commit a0354fd

Please sign in to comment.