terraform-provider-avi icon indicating copy to clipboard operation
terraform-provider-avi copied to clipboard

Cycle with IPAM profile and usable_networks

Open vitality411 opened this issue 11 months ago • 0 comments

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
}
  1. 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

vitality411 avatar Mar 21 '24 15:03 vitality411