Skip to content

Network Resource

Rui Moreira edited this page Jul 21, 2017 · 8 revisions

The A_Record resource allows for the creation and management of a A_Record on infoblox.

Example Usage

resource "infoblox_network" "net2" {
     comment = "My awesome network"
     network = "172.17.10.0/24"
     use_options=true
     option {
            name = "routers"
            num = 3
            useoption = true
            value =  "172.17.10.1"
            vendorclass =  "DHCP"
     }
     option {
          name =  "domain-name-servers"
          num= 6,
          useoption =  true
          value = "8.8.8.8,8.8.4.4"
          vendorclass =  "DHCP"
     }
}

Argument Reference

The following arguments are supported:

  • network - (Required) - (String) - The network address, in IPv4 Address/CIDR format. The field also supports automatic selection of the next available network with selected CIDR in the specified network or network container.

You can specify the network or network container in the following ways:

Using a network or network container WAPI reference:

func:nextavailablenetwork:, Using a network lookup (if the view is not specified, the default view will be used):

func:nextavailablenetwork:[,], Scheduled and approval operations are not supported when using the automatic network selection.

If you specify a network view for automatic network selection, you should also add a network_view field in the object to be inserted with the same network view because the network view for automatic network selection is not used for the actual object insertion.

  • comment - (Optional, Default = empty) - (String) - Comment for the network, maximum 256 characters.

  • authority - (Optional, Default = false) - (Bool) - Authority for the DHCP network. Requires use_authority set to true.

  • use_authority - (Optional, Default = false) - (Bool) - Use flag for authority attribute.

  • autocreatereversezone - (Optional, Default = false) - (Bool) - This flag controls whether reverse zones are automatically created when the network is added. Cannot be updated.

  • disable - (Optional, Default = false) - (Bool) - Determines whether a network is disabled or not. When this is set to False, the network is enabled.

  • enableddns - (Optional, Default = false) - (Bool) - The dynamic DNS updates flag of a DHCP network object. If set to True, the DHCP server sends DDNS updates to DNS servers in the same Grid, and to external DNS servers. Requires use_enableddns set to true.

  • use_enableddns - (Optional, Default = false) - (Bool) - Use flag for enableddns attribute.

  • enabledhcpthresholds - (Optional, Default = false) - (Bool) - Determines if DHCP thresholds are enabled for the network.

  • use_enabledhcpthresholds - (Optional, Default = false) - (Bool) - Use flag for enabledhcpthresholds attribute. Requires High/low watermarks and resets to be set.

  • high_watermark - (Optional, Default = 95) - (Int) - The percentage of DHCP network usage threshold above which network usage is not expected and may warrant your attention. When the high watermark is reached, the Infoblox appliance generates a syslog message and sends a warning (if enabled). A number that specifies the percentage of allocated addresses. The range is from 1 to 100.

  • high_watermark_reset - (Optional, Default = 85) - (Int) - The percentage of DHCP network usage below which the corresponding SNMP trap is reset. A number that specifies the percentage of allocated addresses. The range is from 1 to 100. The high watermark reset value must be lower than the high watermark value.

  • low_watermark - (Optional, Default = 0) - (Int) - The percentage of DHCP network usage below which the Infoblox appliance generates a syslog message and sends a warning (if enabled). A number that specifies the percentage of allocated addresses. The range is from 1 to 100.

  • low_watermark_reset - (Optional, Default = 10) - (Int) - The percentage of DHCP network usage threshold below which network usage is not expected and may warrant your attention. When the low watermark is crossed, the Infoblox appliance generates a syslog message and sends a warning (if enabled). A number that specifies the percentage of allocated addresses. The range is from 1 to 100. The low watermark reset value must be higher than the low watermark value.

  • enablediscovery - (Optional, Default = false) - (Bool) - Determines whether a discovery is enabled or not for this network. When this is set to False, the network discovery is disabled. Requires use_enablediscovery to be enabled. Note: This attribute has not been fully tested so use with caution.

  • use_enablediscovery - (Optional, Default = false) - (Bool) - Use flag for: discovery_member ,enablediscovery.

  • discovery_member - (Optional, Default = empty) - (String) - The member that will run discovery for this network.

  • ipv4addr - (Optional, Default = undefined) - (String) - The IPv4 Address of the network.

  • leasescavengetime - (Optional, Default = -1) - (Int) - An integer that specifies the period of time (in seconds) that frees and backs up leases remained in the database before they are automatically deleted. To disable lease scavenging, set the parameter to -1. The minimum positive value must be greater than 86400 seconds (1 day).

  • netmask - (Optional, Default = undefined) - (Int) - The netmask of the network in CIDR format.

  • recycleleases - (Optional, Default = true) - (Bool) - If the field is set to True, the leases are kept in the Recycle Bin until one week after expiration. Otherwise, the leases are permanently deleted. Requires use_recycleleases to be enabled

  • use_recycleleases - (Optional, Default = false) - (Bool) - Use flag for: recycleleases

  • restartifneeded - (Optional, Default = false) - (Bool) - Restarts the member service.

  • updatednsonleaserenewal - (Optional, Default = false) - (Bool) - This field controls whether the DHCP server updates DNS when a DHCP lease is renewed.

  • option - (Optional) - (Struct) - An option sets the value of a DHCP option that has been defined in an option space. DHCP options describe network configuration settings and various services available on the network. These options occur as variable-length fields at the end of DHCP messages. Requires use_options to be enabled. These are options set by IANA and are a industry standard for DHCP servers, the complete ,list of options and their meaning is available here https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml

    • name - (Optional, Default = undefined) - (String) - Name of the DHCP option.
    • num - (Optional, Default = undefined) - (Int) - The code of the DHCP option.
    • useoption - (Optional, Default = true) - (Boolean) - Only applies to special options that are displayed separately from other options and have a use flag.
    • value - (Optional) - (String) - Value of the DHCP option
    • vendorclass - (Optional, Default = "DHCP") - (String) - The name of the vendor class, this is documented in the IANA RFCs and the aim of the option is to provide hardware vendor specific configuration settings, the default value is "DHCP" .
  • use_options - (Optional, Default = false) - (Bool) - Use flag for: option(s)

Clone this wiki locally