Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcd_nsxt_network_imported activating dual stack after the fact recreates the segment #1373

Open
bogi0704 opened this issue Dec 13, 2024 · 0 comments

Comments

@bogi0704
Copy link
Contributor

bogi0704 commented Dec 13, 2024

Hello,

if the resource has already existed with an IPv4 address, adding a secondary IPv6 address and setting the segment to dual stack will lead to recreation. The VCD UI allows the user to change an IPv4 only subnet to Dual Stack.

Terraform Version

Terraform v1.8.5
on linux_amd64
provider registry.terraform.io/vmware/vcd v3.14.1

Affected Resource(s)

  • vcd_nsxt_network_imported

Terraform Configuration Files

-/+ resource "vcd_nsxt_network_imported" "main" {
      + dual_stack_enabled       = true
      + dvpg_id                  = (known after apply)
      ~ id                       = "urn:vcloud:network:5de0c4ec-4325-4847-8d22-874457cb4c8c" -> (known after apply)
        name                     = "segmentName"
      ~ nsxt_logical_switch_id   = "9ec6781a-0eb3-4c5c-8cc4-1ca2cf60750b" -> (known after apply)
      + secondary_gateway        = "fd8a:3e2b:ce5::1" # forces replacement
      + secondary_prefix_length  = "48" # forces replacement
      ~ vdc                      = "vdcname" -> (known after apply)
        # (8 unchanged attributes hidden)

      + secondary_static_ip_pool {
          + end_address   = "fd8a:3e2b:ce5:ffff:ffff:ffff:ffff:fffe"
          + start_address = "fd8a:3e2b:ce5::2"
        }

        # (1 unchanged block hidden)
    }

Expected Behavior

The network should just be changed rather than being recreated.

Actual Behavior

The network is up for recreation

Steps to Reproduce

  1. create an IPv4-only network first
  2. add a secondary IPv6 gateway
  3. terraform plan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant