Skip to content

Commit

Permalink
Standard Host switch: set host switch mode as Optional
Browse files Browse the repository at this point in the history
If this attribute is set only as Computed, the SDK plugin
won't accept any ValidateFunc for it.

Signed-off-by: Salvatore Orlando <[email protected]>
  • Loading branch information
salv-orlando committed Oct 3, 2024
1 parent db61285 commit 0247710
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nsxt/resource_nsxt_edge_transport_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ func getStandardHostSwitchSchema(nodeType string) *schema.Schema {
Type: schema.TypeString,
Description: "Operational mode of a HostSwitch",
Computed: true,
Optional: true,
ValidateFunc: validation.StringInSlice(hostSwitchModeValues, false),
},
"is_migrate_pnics": {
Expand Down

0 comments on commit 0247710

Please sign in to comment.