Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Next »

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/
Optional

Description

network_view

Optional

Specifies the network view in which to create the network container.
If a value is not specified, default will be used as the network view name.

cidr

Required only if parent_cidr is not set

Specifies the network block to use for the network container.
Do not use an IPv4 CIDR for an IPv6 network and an IPv6 CIDR for an IPv4 network.

parent_cidr

Required only if cidr is not set

Specifies the network container from which the next available network container must be dynamically allocated.
The network container must exist in the NIOS database, but not necessarily as a Terraform resource.

allocate_prefix_len

Required only if parent_cidr or filter_params is set

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 parent_cidror filter_params.

filter_params

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.

comment

Optional

Describes the network container.

ext_attrs

Optional

Specifies the set of NIOS extensible attributes that will be attached to the network container.

Note

  • Either 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.

  • Once the network container is created, the 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"
    })
}

  • No labels