You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"nsxt_policy_dhcp_v4_static_binding" {
source="./modules/nsxt/r/nsxt_policy_dhcp_v4_static_binding"# description - (optional) is a type of stringdescription=null# display_name - (required) is a type of stringdisplay_name=null# gateway_address - (optional) is a type of stringgateway_address=null# hostname - (optional) is a type of stringhostname=null# ip_address - (required) is a type of stringip_address=null# lease_time - (optional) is a type of numberlease_time=null# mac_address - (required) is a type of stringmac_address=null# nsx_id - (optional) is a type of stringnsx_id=null# segment_path - (required) is a type of stringsegment_path=nulldhcp_generic_option=[{
code =null
values = []
}]
dhcp_option_121=[{
network =null
next_hop =null
}]
tag=[{
scope =null
tag =null
}]
}
variable"description" {
description="(optional) - Description for this resource"type=stringdefault=null
}
variable"display_name" {
description="(required) - Display name for this resource"type=string
}
variable"gateway_address" {
description="(optional) - When not specified, gateway address is auto-assigned from segment configuration"type=stringdefault=null
}
variable"hostname" {
description="(optional) - Hostname to assign to the host"type=stringdefault=null
}
variable"ip_address" {
description="(required) - IP assigned to host. The IP address must belong to the subnetconfigured on segment"type=string
}
variable"lease_time" {
description="(optional) - DHCP lease time in seconds"type=numberdefault=null
}
variable"mac_address" {
description="(required) - MAC address of the host"type=string
}
variable"nsx_id" {
description="(optional) - NSX ID for this resource"type=stringdefault=null
}
variable"segment_path" {
description="(required) - segment path"type=string
}
variable"dhcp_generic_option" {
description="nested block: NestingList, min items: 0, max items: 0"type=set(object(
{
code =number
values =list(string)
}
))
default=[]
}
variable"dhcp_option_121" {
description="nested block: NestingList, min items: 0, max items: 0"type=set(object(
{
network =string
next_hop =string
}
))
default=[]
}
variable"tag" {
description="nested block: NestingSet, min items: 0, max items: 0"type=set(object(
{
scope =string
tag =string
}
))
default=[]
}
resource"nsxt_policy_dhcp_v4_static_binding""this" {
# description - (optional) is a type of stringdescription=var.description# display_name - (required) is a type of stringdisplay_name=var.display_name# gateway_address - (optional) is a type of stringgateway_address=var.gateway_address# hostname - (optional) is a type of stringhostname=var.hostname# ip_address - (required) is a type of stringip_address=var.ip_address# lease_time - (optional) is a type of numberlease_time=var.lease_time# mac_address - (required) is a type of stringmac_address=var.mac_address# nsx_id - (optional) is a type of stringnsx_id=var.nsx_id# segment_path - (required) is a type of stringsegment_path=var.segment_pathdynamic"dhcp_generic_option" {
for_each=var.dhcp_generic_optioncontent {
# code - (required) is a type of numbercode=dhcp_generic_option.value["code"]
# values - (required) is a type of list of stringvalues=dhcp_generic_option.value["values"]
}
}
dynamic"dhcp_option_121" {
for_each=var.dhcp_option_121content {
# network - (required) is a type of stringnetwork=dhcp_option_121.value["network"]
# next_hop - (required) is a type of stringnext_hop=dhcp_option_121.value["next_hop"]
}
}
dynamic"tag" {
for_each=var.tagcontent {
# scope - (optional) is a type of stringscope=tag.value["scope"]
# tag - (optional) is a type of stringtag=tag.value["tag"]
}
}
}