terraform-provider-avi
terraform-provider-avi copied to clipboard
Cycle with IPAM profile and usable_networks
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
- Create avi_cloud with the required resources
- 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
}
- 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