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 Once the network container is created, the
Optionalnetwork_view
If a value is not specified, default
will be used as the network view name.cidr
parent_cidr
is not set
Do not use an IPv4 CIDR for an IPv6 network and an IPv6 CIDR for an IPv4 network.parent_cidr
cidr
is not set
The network container must exist in the NIOS database, but not necessarily as a Terraform resource.allocate_prefix_len
parent_cidr
or filter_params
is setparent_cidr
or filter_params
.filter_params
comment
ext_attrs
cidr,
the combination of parent_cidr
and allocate_prefix_len
, or the combination of filter_params
and allocate_prefix_len
is required. The rest of the parameters are optional.network_view
, cidr
, parent_cidr
, allocate_prefix_len
, and filter_params
parameter values cannot be changed by performing an update operation.
Examples of the Network Container Resource
// statically allocated IPv6 network container, minimal set of parameters
resource "infoblox_ipv6_network_container" "v6net_c1" {
cidr = 2002:1f93:0:1::/96
}
// full set of parameters for statically allocated IPv6 network container
resource "infoblox_ipv6_network_container" "v6net_c2" {
cidr = 2002:1f93:0:2::/96 // you may allocate the same IP address range but in another network view
network_view = "nondefault_netview"
comment = "new generation network segment"
ext_attrs = jsonencode({
"Site" = "space station"
"Country" = "Earth orbit"
})
}
// full set of parameters for dynamic allocation of network containers
resource "infoblox_ipv6_network_container" "v6net_c3" {
parent_cidr = infoblox_ipv6_network_container.v6net_c2.cidr
allocate_prefix_len = 97
network_view = "infoblox_ipv6_network_container.v6net_c2.network_view"
comment = "dynamic allocation of network container"
ext_attrs = jsonencode({
"Tenant ID" = "terraform_test_tenant"
"Site" = "Test site"
})
}