You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
The subnets input variable can be defined using only the newbits parameter for each entry (default), using the cidrsubnets function internally to calculate starting addresses within the VCN. This may lead to sub-optimal utilization and fragmentation of addresses depending on size and ordering.
To overcome this, we can sort the configured subnets by newbits in provided arguments to cidrsubnets, however this is non-trivial due to the way Terraform maps are ordered implicitly; we will need transformations to e.g. prefix/split map keys internally to preserve an explicit ordering.
Community Note
Description
The
subnets
input variable can be defined using only thenewbits
parameter for each entry (default), using thecidrsubnets
function internally to calculate starting addresses within the VCN. This may lead to sub-optimal utilization and fragmentation of addresses depending on size and ordering.To overcome this, we can sort the configured subnets by
newbits
in provided arguments tocidrsubnets
, however this is non-trivial due to the way Terraform maps are ordered implicitly; we will need transformations to e.g. prefix/split map keys internally to preserve an explicit ordering.New or Affected Resource(s)
module.network.module.network.oci_core_subnet.oke[*]
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: