infoblox_ipv4_network_container Resource
This network container resource, enables you to create, update, or delete a network container in a NIOS appliance.
The following table describes the parameters you can define in the network container resource block:
Parameter | Required/ | Description |
---|---|---|
| Optional | Specifies the network view in which to create the network container. |
| Required only if | Specifies the network block to use for the network container. |
| Required only if | Specifies the network container from which the next available network container must be dynamically allocated. |
| Required only if | Defines the length of the network part of the address for a network container that should be allocated from a parent network container, which in turn is determined by |
| Optional | Specifies the extensible attributes of the parent network container that must be used as filters to retrieve the next available network for creating the network container object. |
| Optional | Describes the network container. |
| Optional | Specifies the set of NIOS extensible attributes that will be attached to the network container. |
Note
Either
cidr,
the combination ofparent_cidr
andallocate_prefix_len
, or the combination offilter_params
andallocate_prefix_len
is required. The rest of the parameters are optional.Once the network container is created, the
network_view
,cidr
,parent_cidr
,allocate_prefix_len
, andfilter_params
parameter values cannot be changed by performing an update operation.
Examples of the Network Container Resource
// statically allocated IPv4 network container, minimal set of parameters
resource "infoblox_ipv4_network_container" "v4net_c1" {
cidr = 10.2.0.0/24
}
// full set of parameters for statically allocated IPv4 netork container
resource "infoblox_ipv4_network_container" "v4net_c2" {
cidr = 10.2.0.0/24 // you may allocate the same IP address range but in another network view
network_view = "nondefault_netview"
comment = "one of our clients"
ext_attrs = jsonencode({
"Site" = "remote office"
"Country" = "Australia"
})
}
// Full set of parameters for dynamic allocation of network containers
resource "infoblox_ipv4_network_container" "v4net_c3" {
parent_cidr = infoblox_ipv4_network_container.v4net_c2.cidr
allocate_prefix_len = 26
network_view = "infoblox_ipv4_network_container.v4net_c2.network_view"
comment = "one of our clients"
ext_attrs = jsonencode({
"Site" = "remote office"
"Country" = "Australia"
})
}
//create network container resource using next-available-network based on extensible attributes tag
resource "infoblox_ipv4_network_container" "nc7" {
allocate_prefix_len = 26
# network_view = "nondefault_netview"
comment = "network container created with the next available network"
filter_params = jsonencode({
"*Site": "Blr"
})
}