Skip to content

Commit

Permalink
Merge pull request #1386 from ksamoray/host_switch_mode_computed
Browse files Browse the repository at this point in the history
Remove default for host_switch_mode, set to Computed
  • Loading branch information
ksamoray authored Oct 2, 2024
2 parents 94f3601 + b29b4b0 commit 26d3e47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions nsxt/resource_nsxt_edge_transport_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ func getStandardHostSwitchSchema(nodeType string) *schema.Schema {
"host_switch_mode": {
Type: schema.TypeString,
Description: "Operational mode of a HostSwitch",
Default: model.StandardHostSwitch_HOST_SWITCH_MODE_STANDARD,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice(hostSwitchModeValues, false),
},
"is_migrate_pnics": {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/policy_host_transport_node.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The following arguments are supported:
* `numa_node_index` - (Required) Unique index of the Non Uniform Memory Access (NUMA) node.
* `host_switch_id` - (Optional) The host switch id. This ID will be used to reference a host switch.
* `host_switch_name` - (Optional) Host switch name. This name will be used to reference a host switch.
* `host_switch_mode` - (Optional) Operational mode of a HostSwitch. Accepted values - 'STANDARD', 'ENS', 'ENS_INTERRUPT' or 'LEGACY'. The default value is 'STANDARD'.
* `host_switch_mode` - (Optional) Operational mode of a HostSwitch. Accepted values - 'STANDARD', 'ENS', 'ENS_INTERRUPT' or 'LEGACY'.
* `host_switch_profile` - (Optional) Policy path of host switch profiles to be associated with this host switch.
* `ip_assignment` - (Required) - Specification for IPs to be used with host switch virtual tunnel endpoints. Should contain exatly one of the below:
* `assigned_by_dhcp` - (Optional) Enables DHCP assignment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following arguments are supported:
* `standard_host_switch` - (Required) Standard host switch specification.
* `host_switch_id` - (Optional) The host switch id. This ID will be used to reference a host switch.
* `host_switch_name` - (Optional) Host switch name. This name will be used to reference a host switch.
* `host_switch_mode` - (Optional) Operational mode of a HostSwitch. Accepted values - 'STANDARD', 'ENS', 'ENS_INTERRUPT' or 'LEGACY'. The default value is 'STANDARD'.
* `host_switch_mode` - (Optional) Operational mode of a HostSwitch. Accepted values - 'STANDARD', 'ENS', 'ENS_INTERRUPT' or 'LEGACY'.
* `host_switch_profile` - (Optional) Policy paths of host switch profiles to be associated with this host switch.
* `ip_assignment` - (Required) - Specification for IPs to be used with host switch virtual tunnel endpoints. Should contain exactly one of the below:
* `assigned_by_dhcp` - (Optional) Enables DHCP assignment.
Expand Down

0 comments on commit 26d3e47

Please sign in to comment.