This resource enables you to perform create, update, and delete operations on IP networks. Network resources support the next available network feature by using the The following table describes the parameters you can define in a network resource block:
|
Additionally, define the following parameter for the infoblox_ipv4_network
resource:
Parameter | Required/ | Description |
---|---|---|
| Optional | Specifies the number of IPv4 addresses that you want to reserve in the IPv4 network. |
|
resource "infoblox_ipv4_network_container" "nc1" {
network_view = "default"
cidr = "10.0.0.0/16"
}
// A statically allocated network in a non-default network view.
resource "infoblox_ipv4_network" "nw1" { network_view = "very_special_network_view"
cidr = "10.0.0.0/24"
reserve_ip = 5
gateway = "10.0.0.6" comment = "mockup network"
ext_attrs = jsonencode({
"Tenant ID" = "tf-plugin"
"Cloud API Owned" = "True"
"CMP Type"= "VMware"
"Site" = "Nevada"
})}
resource "infoblox_ipv4_network" "nw2" {
// The 'network_view' attribute is omitted,
// thus is implied to be 'default'
parent_cidr = infoblox_ipv4_network_container.nc1.cidr
allocate_prefix_len = 30
ext_attrs = jsonencode({
"Tenant ID" = "tf-plugin"
"Cloud API Owned" = "True"
"CMP Type"= "VMware" "Custom EA 1" = "category 14"
})
}