Skip to content

NSX DHCP Relay Resource

shin-nien edited this page Jul 13, 2017 · 15 revisions

The DHCP_RELAY resource allows the creation and management of a DHCP relay for an edge interface on the Distributed Logical Router (DLR). All the CRUD functionalities are currently implemented.

Example Usage

resource "nsx_dhcp_relay" "name_for_resource" {
  ipsets = ["ipset-3"]
  fqdn = ["testdomain.paas.bskyb.com","testdomain2.paas.bskyb.com"]
  edgeid       = "edge-5"
  dhcpserverip = ["10.152.160.11","10.152.160.12"]
  agent {
       vnicindex="9"
       giaddress="10.72.232.200"
  }
}

Argument Reference

The following arguments are supported:

Only one of ipsets, fqdn, dhcpserverip is required and the total number of servers cannot exceed 16.

  • ipsets - (Optional) - A list containing the ID of one ore more ipset objects
  • fqdn - (Optional) - A list of up to 2 fqdns
  • dhcpserverip (Optional) - A list of the IP address of the DHCP servers to have requests relayed to
  • edgeid - (Required) The NSX Edge ID for the Distributed Logical Router (DLR) we wish to use.
  • agent - (Required) The DHCP agents to use
    • vnicindex - (Required) The VNIC Index.
    • giaddress - (Optional) The gateway address of the subnet DHCP is being served to. Defaults to the vNic's primary address.