Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt
infoblox_ipv4_network_container Resource
infoblox_ipv4_network_container Resource
nopaneltrue

Examples of the Network Container Resource

// statically allocated IPv6 network container, minimal set of parameters
resource "infoblox_ipv6_network_container" "nc2" {
  network_view = "very_special_network_view"
  cidr = "2a00:1148::/32"
  comment = "this is an example of network container"
  ext"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" = "tf-pluginterraform_test_tenant"
      "Cloud API OwnedSite" = "TrueTest site"
    "CMP Type"= "VMware"
    "Site" = "Nevada" 
  })
}

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