Skip to content

Commit

Permalink
Rename nsxt_uplink_host_switch_profile
Browse files Browse the repository at this point in the history
Previous PR renamed this resource to
nsxt_policy_uplink_host_switch_profile but left a few places which were
unchanged.

Signed-off-by: Kobi Samoray <[email protected]>
  • Loading branch information
ksamoray committed Oct 25, 2023
1 parent 3f052cb commit 29766b9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion nsxt/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ func Provider() *schema.Provider {
"nsxt_manager_cluster": resourceNsxtManagerCluster(),
"nsxt_policy_uplink_host_switch_profile": resourceNsxtUplinkHostSwitchProfile(),
"nsxt_node_user": resourceNsxtUsers(),
"nsxt_uplink_host_switch_profile": resourceNsxtUplinkHostSwitchProfile(),
"nsxt_transport_node": resourceNsxtTransportNode(),
"nsxt_failure_domain": resourceNsxtFailureDomain(),
"nsxt_cluster_virtual_ip": resourceNsxtClusterVirualIP(),
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/transport_node_realization.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "nsxt_transport_node" "test" {
transport_zone = data.nsxt_transport_zone.tz1.id
transport_zone_profile = ["52035bb3-ab02-4a08-9884-18631312e50a"]
}
host_switch_profile = [nsxt_uplink_host_switch_profile.hsw_profile1.id]
host_switch_profile = [nsxt_policy_uplink_host_switch_profile.hsw_profile1.id]
is_migrate_pnics = false
pnic {
device_name = "fp-eth0"
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 @@ -35,7 +35,7 @@ resource "nsxt_policy_host_transport_node" "test" {
standard_host_switch {
host_switch_mode = "STANDARD"
host_switch_type = "NVDS"
host_switch_profile = [data.nsxt_uplink_host_switch_profile.hsw_profile1.path]
host_switch_profile = [data.nsxt_policy_uplink_host_switch_profile.hsw_profile1.path]
ip_assignment {
assigned_by_dhcp = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "nsxt_policy_host_transport_node_profile" "test" {
transport_zone_endpoint {
transport_zone = data.nsxt_transport_zone.tz1.id
}
host_switch_profile = [nsxt_uplink_host_switch_profile.hsw_profile1.path]
host_switch_profile = [nsxt_policy_uplink_host_switch_profile.hsw_profile1.path]
is_migrate_pnics = false
pnic {
device_name = "fp-eth0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ An existing object can be [imported][docs-import] into this resource, via the fo
[docs-import]: https://www.terraform.io/cli/import

```
terraform import nsxt_uplink_host_switch_profile.uplink_host_switch_profile UUID
terraform import nsxt_policy_uplink_host_switch_profile.uplink_host_switch_profile UUID
```

The above command imports UplinkHostSwitchProfile named `uplink_host_switch_profile` with the NSX ID `UUID`.


```
terraform import nsxt_uplink_host_switch_profile.uplink_host_switch_profile POLICY_PATH
terraform import nsxt_policy_uplink_host_switch_profile.uplink_host_switch_profile POLICY_PATH
```
The above command imports the uplink host switch profile named `uplink_host_switch_profile` with policy path `POLICY_PATH`.
2 changes: 1 addition & 1 deletion website/docs/r/transport_node.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource "nsxt_transport_node" "test" {
transport_zone = data.nsxt_transport_zone.tz1.id
transport_zone_profile = ["52035bb3-ab02-4a08-9884-18631312e50a"]
}
host_switch_profile = [nsxt_uplink_host_switch_profile.hsw_profile1.id]
host_switch_profile = [nsxt_policy_uplink_host_switch_profile.hsw_profile1.id]
is_migrate_pnics = false
pnic {
device_name = "fp-eth0"
Expand Down

0 comments on commit 29766b9

Please sign in to comment.