/
infoblox_ipv6_network_container Resource

infoblox_ipv6_network_container Resource

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"
    })
}

//network container resource using next-available-network
resource "infoblox_ipv6_network_container" "nc7" {
allocate_prefix_len = 68
# network_view = "nondefault_netview"
comment = "one of our clients"
filter_params = jsonencode({
"*Site": "Blr"
})
}

//network container resource using next-available-network based on extensible attributes tag
resource "infoblox_ipv6_network_container" "nc7" {
allocate_prefix_len = 68
# network_view = "nondefault_netview"
comment = "network container created with the next available network"
filter_params = jsonencode({
"*Site": "Blr"
})
}

Related content