vmware / terraform-provider-vcd

Terraform VMware Cloud Director provider
https://www.terraform.io/docs/providers/vcd/
Mozilla Public License 2.0
148 stars 112 forks source link

vcd_vapp_vm: network: Update of network name does not show update for IP #551

Open jpbuecken opened 4 years ago

jpbuecken commented 4 years ago

Version

Used a self compiled version based on #543.

Affected Resource(s)

Please list the resources as a list, for example:

Terraform Configuration Files

  network {
    type               = "org"
    name               = "NETWORK1"
    ip_allocation_mode = "POOL"
  }

Expected Behavior

If you change the network name in the above HCL, and the ip allocation mode is POOL, a terraform plan should show a change for ip:

      ~ network {
            adapter_type       = "VMXNET3"
            connected          = true
          ~ ip                 = "10.70.21.83" -> known after apply
            ip_allocation_mode = "POOL"
            is_primary         = true
            mac                = "00:50:56:01:00:d4"
          ~ name               = "NETOWRK1" -> "NETWORK2"
            type               = "org"
        }

Actual Behavior

terraform plan looks like it will not change:

      ~ network {
            adapter_type       = "VMXNET3"
            connected          = true
            ip                 = "10.70.21.83"
            ip_allocation_mode = "POOL"
            is_primary         = true
            mac                = "00:50:56:01:00:d4"
          ~ name               = "NETWORK1" -> "NETWORK2"
            type               = "org"
        }
Didainius commented 4 years ago

Let me do some experiments here, but I think this is a limitation of Terraform SDK and what it can do.

jpbuecken commented 3 weeks ago

FYI: Just tested with terraform 1.9.6 and provider 3.14.0. Issue still exists