...
Excerpt | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
This resource enables you to perform create, update, and delete operations on IP networks. Network resources support the next available network feature by using when you use the The following table describes the parameters you can define in a network resource block:
|
...
Parameter | Required/ | Description |
---|---|---|
| Optional | Specifies the number of IPv4 addresses that you want to reserve in the IPv4 network. |
Note | ||
---|---|---|
| ||
|
Examples of the Network Block
// statically allocated IPv4 network. Example with minimal set of parameters
resource "infoblox_ipv4_network_container" "nc1net1" {
network_view = "default"
cidr = " cidr = 10.0.0.0/16"
}
// A full set of parameters for a statically allocated network in a non-default network view.IPv4 network
resource "infoblox_ipv4_network" "nw1net2" {
network_view = "very_special_network_view"
cidr = "10.0 cidr = 10.1.0.0/24
network_view = "nondefault_netview"
reserve reserve_ip = 5
gateway gateway = "10.01.0.6254"
comment comment = "mockup small network for testing"
ext_attrs = jsonencode({
"Tenant ID" = "tf-plugin"
"Cloud API Owned" = "True"
"CMP Type"= "VMware"
"Site" = "Nevada"
})}
//full set of parameters for a dynamically allocated IPv4 network
resource "infoblox_ipv4_network" "nw2net3" {
// The 'network_view' attribute is omitted,
// thus is implied to be 'default'
parent parent_cidr = infobloxinfoblox_ipv4_network_container.nc1v4net_c1.cidr
allocate// reference to the resource from another example allocate_prefix_len = 30
ext_attrs = jsonencode({
"Tenant ID" = "tf-plugin"
"Cloud API Owned" = "True"
"CMP Type"= "VMware"26 # 24 (existing network container) + 2 (new network), prefix network_view = "default" # optional parameter
reserve_ip = 2
gateway = "none" # no gateway defined for this network
comment = "even smaller network for testing"
ext_attrs = jsonencode({
"Custom EA 1Site" = "category 14
Nevada
" })
}