infobloxopen / terraform-provider-infoblox

Infoblox NIOS Terraform Provider
https://github.com/infobloxopen/terraform-provider-infoblox
Mozilla Public License 2.0
73 stars 80 forks source link

infoblox_ipv4_network update of cidr not supported by Infoblox #253

Open steffencircle opened 2 years ago

steffencircle commented 2 years ago

Hi,

we are making use of the "infoblox_ipv4_network" resource in order to register networks that we allocated in the cloud in Infoblox.

Sometimes we need to resize these subnets, which also triggers an update of the infoblox_ipv4_network.

However, it seems that updating the cidr is not supported by Infoblox as we are getting the following error:

╷
│ Error: changing the value of 'cidr' field is not allowed
│ 
│   with module.blue-gke-prepare.module.blue-subnet["gke_subnet_01"].infoblox_ipv4_network.subnet,
│   on ../../../../modules/blue-subnet/main.tf line 49, in resource "infoblox_ipv4_network" "subnet":
│   49: resource "infoblox_ipv4_network" "subnet" {
│ 
╵

Therefore the property should be marked as force-new from my perspective.

Steffen

bardahlm commented 8 months ago

This needs to be adressed. There is no easy way out of this issue. If you delete the network in Infoblox GUI then plan will fail (due to #320). If you do not delete it apply will fail.

SanjeevManurkar commented 8 months ago

We have added this to our backlog for upcoming FY. We will address this based on prioritization.