Skip to content

Commit 1ad2ec1

Browse files
ksamoraycursoragent
andcommitted
Update nsxt_edge_transport_node docs for bug 3689817 fix
transport_zone, host_switch_profile, uplink_profile and vtep_ha_profile now require policy paths (validatePolicyPath enforced); bare UUIDs are rejected. Update examples to use .path, fix attribute descriptions, and mark audit_username as Computed. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 6b6687d commit 1ad2ec1

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/data-sources/transport_node_realization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "nsxt_edge_transport_node" "test" {
1919
static_ip_pool = data.nsxt_ip_pool.ipp1.id
2020
}
2121
transport_zone_endpoint {
22-
transport_zone = data.nsxt_transport_zone.tz1.id
22+
transport_zone = data.nsxt_policy_transport_zone.tz1.path
2323
transport_zone_profiles = ["52035bb3-ab02-4a08-9884-18631312e50a"]
2424
}
2525
host_switch_profile = [nsxt_policy_uplink_host_switch_profile.hsw_profile1.path]

docs/resources/edge_transport_node.md

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

58-
**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.
58+
**NOTE:** `transport_zone`, `host_switch_profile`, `uplink_profile` and `vtep_ha_profile` must be policy paths. Bare UUIDs are no longer accepted.
5959

6060
## Example Usage, with Edge Transport Node created externally and converted into a transport node using Terraform
6161

@@ -73,12 +73,12 @@ resource "nsxt_edge_transport_node" "test_node" {
7373
static_ip_pool = data.nsxt_policy_ip_pool.vtep_ip_pool.realized_id
7474
}
7575
transport_zone_endpoint {
76-
transport_zone = data.nsxt_policy_transport_zone.overlay_tz.id
76+
transport_zone = data.nsxt_policy_transport_zone.overlay_tz.path
7777
}
7878
transport_zone_endpoint {
79-
transport_zone = data.nsxt_policy_transport_zone.vlan_tz.id
79+
transport_zone = data.nsxt_policy_transport_zone.vlan_tz.path
8080
}
81-
uplink_profile = data.nsxt_policy_uplink_host_switch_profile.edge_uplink_profile.id
81+
uplink_profile = data.nsxt_policy_uplink_host_switch_profile.edge_uplink_profile.path
8282
pnic {
8383
device_name = "fp-eth0"
8484
uplink_name = "uplink1"
@@ -103,8 +103,8 @@ The following arguments are supported:
103103
* `host_switch_id` - (Optional) The host switch id. This ID will be used to reference a host switch.
104104
* `host_switch_name` - (Optional) Host switch name. This name will be used to reference a host switch.
105105
* `host_switch_profile` - (Deprecated) Identifiers of host switch profiles to be associated with this host switch. This attribute is deprecated, please use type-specific attribute instead (such as `uplink_profile`)
106-
* `uplink_profile` - (Optional) Uplink host switch profile id.
107-
* `vtep_ha_profile` - (Optional) VTEP high availability host switch profile id. Only applicable with VDS switch.
106+
* `uplink_profile` - (Optional) Uplink host switch profile policy path.
107+
* `vtep_ha_profile` - (Optional) VTEP high availability host switch profile policy path. Only applicable with VDS switch.
108108
* `ip_assignment` - (Required) - Specification for IPs to be used with host switch virtual tunnel endpoints. Should contain exactly one of the below:
109109
* `assigned_by_dhcp` - (Optional) Enables DHCP assignment.
110110
* `no_ipv4` - (Optional) No IPv4 for this host switch.
@@ -137,7 +137,7 @@ The following arguments are supported:
137137
* `device_name` - (Required) Device name or key.
138138
* `uplink_name` - (Required) Uplink name for this Pnic.
139139
* `transport_zone_endpoint` - (Optional) Transport zone endpoints
140-
* `transport_zone` - (Required) Unique ID identifying the transport zone for this endpoint.
140+
* `transport_zone` - (Required) Policy path of the transport zone for this endpoint.
141141
* `transport_zone_profiles` - (Optional) Identifiers of the transport zone profiles associated with this transport zone endpoint on this transport node.
142142
* `external_id` - (Optional) ID of the Node.
143143
* `fqdn` - (Optional) Fully qualified domain name of the fabric node.
@@ -147,7 +147,7 @@ The following arguments are supported:
147147
* `form_factor` - (Optional) Accepted values - 'SMALL', 'MEDIUM', 'LARGE', 'XLARGE'. The default value is 'MEDIUM'.
148148
* `node_user_settings` - (Required) Node user settings.
149149
* `audit_password` - (Optional) Node audit user password.
150-
* `audit_username` - (Optional) CLI "audit" username. Defaults to "audit".
150+
* `audit_username` - (Optional, Computed) CLI "audit" username. When omitted, NSX defaults this to `audit`.
151151
* `cli_password` - (Required) Node cli password.
152152
* `cli_username` - (Optional) CLI "admin" username. Defaults to "admin".
153153
* `root_password` - (Required) Node root user password.

0 commit comments

Comments
 (0)