vmware / terraform-provider-avi

Terraform AVI Networks provider
https://registry.terraform.io/providers/vmware/avi/latest/docs
Mozilla Public License 2.0
31 stars 32 forks source link

Cycle with IPAM profile and usable_networks #585

Open vitality411 opened 7 months ago

vitality411 commented 7 months ago

Describe the bug

I am trying to create a NSX-T cloud in AVI with IPAM profile and usable_networks restricted to VIP network. Unfortunatly this leads to the following error: │ Error: Cycle: avi_vrfcontext.dataVrf, avi_network.network-vip, avi_ipamdnsproviderprofile.ipam, avi_cloud.nsx

Reproduction steps

  1. Create avi_cloud with the required resources
  2. Create avi_ipamdnsproviderprofile with usable_networks restricted to VIP network

    resource "avi_ipamdnsproviderprofile" "ipam" {
    name = "${var.cloudName}-ipam"
    type = "IPAMDNS_TYPE_INTERNAL"
    
    internal_profile {
    usable_networks {
      nw_ref = avi_network.network-vip.id
    }
    }
    
    allocate_ip_in_vrf = true
    tenant_ref         = avi_tenant.tenant.id
    }
  3. Receive error: │ Error: Cycle: avi_vrfcontext.dataVrf, avi_network.network-vip, avi_ipamdnsproviderprofile.ipam, avi_cloud.nsx

Expected behavior

It is possible to create a NSX-T cloud in AVI with IPAM profile and usable_networks restricted to VIP network.

Additional context

AVI Controller Version: 22.1.5 NSX-T Version: 4.1.2.3