Skip to content

Commit

Permalink
Merge pull request #1169 from ksamoray/edge_tn_id
Browse files Browse the repository at this point in the history
Remove "id" property from edge_transport_node
  • Loading branch information
ksamoray authored Apr 3, 2024
2 parents 6eafd85 + 5eb431e commit 7490f16
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nsxt/resource_nsxt_edge_transport_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ func resourceNsxtEdgeTransportNode() *schema.Resource {
Computed: true,
Description: "Fully qualified domain name of the fabric node",
},
"id": getNsxIDSchema(),
"ip_addresses": {
Type: schema.TypeList,
Optional: true,
Expand Down Expand Up @@ -690,7 +689,6 @@ func getTransportNodeFromSchema(d *schema.ResourceData) (*model.TransportNode, e

externalID := d.Get("external_id").(string)
fqdn := d.Get("fqdn").(string)
id := d.Get("id").(string)
ipAddresses := interfaceListToStringList(d.Get("ip_addresses").([]interface{}))

deploymentConfig, err := getEdgeNodeDeploymentConfigFromSchema(d.Get("deployment_config"))
Expand All @@ -704,7 +702,6 @@ func getTransportNodeFromSchema(d *schema.ResourceData) (*model.TransportNode, e
node := model.EdgeNode{
ExternalId: &externalID,
Fqdn: &fqdn,
Id: &id,
IpAddresses: ipAddresses,
DeploymentConfig: deploymentConfig,
NodeSettings: nodeSettings,
Expand Down Expand Up @@ -1252,7 +1249,6 @@ func resourceNsxtEdgeTransportNodeRead(d *schema.ResourceData, m interface{}) er
// Set base object attributes
d.Set("external_id", node.ExternalId)
d.Set("fqdn", node.Fqdn)
d.Set("id", node.Id)
d.Set("ip_addresses", node.IpAddresses)

if err != nil {
Expand Down

0 comments on commit 7490f16

Please sign in to comment.