Skip to content

Commit fa81752

Browse files
authored
Merge pull request #1492 from salv-orlando/branch_380
Fix edge transport node documentation
2 parents 759974e + 9a66441 commit fa81752

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

website/docs/r/edge_transport_node.html.markdown

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ resource "nsxt_edge_transport_node" "test" {
2121
assigned_by_dhcp = true
2222
}
2323
transport_zone_endpoint {
24-
transport_zone = data.nsxt_transport_zone.tz1.id
24+
transport_zone = data.nsxt_policy_transport_zone.tz1.id
2525
transport_zone_profiles = ["52035bb3-ab02-4a08-9884-18631312e50a"]
2626
}
27-
host_switch_profile = [nsxt_policy_uplink_host_switch_profile.hsw_profile1.path]
27+
host_switch_profile = [nsxt_policy_uplink_host_switch_profile.hsw_profile1.id]
2828
pnic {
2929
device_name = "fp-eth0"
3030
uplink_name = "uplink1"
@@ -56,6 +56,8 @@ resource "nsxt_edge_transport_node" "test" {
5656
**NOTE:** `data.vsphere_network`, `data.vsphere_compute_cluster`, `data.vsphere_datastore`, `data.vsphere_host` are
5757
obtained using [hashicorp/vsphere](https://registry.terraform.io/providers/hashicorp/vsphere/) provider.
5858

59+
**NOTE** while policy path values are acceptable for `transport_zone`, `host_switch_profile` attributes, it is better to use id values to avoid state issues.
60+
5961
## Example Usage, with Edge Transport Node created externally and converted into a transport node using Terraform
6062
```hcl
6163
data "nsxt_transport_node" "test_node" {
@@ -71,12 +73,12 @@ resource "nsxt_edge_transport_node" "test_node" {
7173
static_ip_pool = data.nsxt_policy_ip_pool.vtep_ip_pool.realized_id
7274
}
7375
transport_zone_endpoint {
74-
transport_zone = data.nsxt_transport_zone.overlay_tz.id
76+
transport_zone = data.nsxt_policy_transport_zone.overlay_tz.id
7577
}
7678
transport_zone_endpoint {
77-
transport_zone = data.nsxt_transport_zone.vlan_tz.id
79+
transport_zone = data.nsxt_policy_transport_zone.vlan_tz.id
7880
}
79-
host_switch_profile = [data.nsxt_policy_uplink_host_switch_profile.edge_uplink_profile.path]
81+
host_switch_profile = [data.nsxt_policy_uplink_host_switch_profile.edge_uplink_profile.id]
8082
pnic {
8183
device_name = "fp-eth0"
8284
uplink_name = "uplink1"

0 commit comments

Comments
 (0)