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"vsphere_host_virtual_switch" {
source="./modules/vsphere/r/vsphere_host_virtual_switch"# active_nics - (required) is a type of list of stringactive_nics=[]
# allow_forged_transmits - (optional) is a type of boolallow_forged_transmits=null# allow_mac_changes - (optional) is a type of boolallow_mac_changes=null# allow_promiscuous - (optional) is a type of boolallow_promiscuous=null# beacon_interval - (optional) is a type of numberbeacon_interval=null# check_beacon - (optional) is a type of boolcheck_beacon=null# failback - (optional) is a type of boolfailback=null# host_system_id - (required) is a type of stringhost_system_id=null# link_discovery_operation - (optional) is a type of stringlink_discovery_operation=null# link_discovery_protocol - (optional) is a type of stringlink_discovery_protocol=null# mtu - (optional) is a type of numbermtu=null# name - (required) is a type of stringname=null# network_adapters - (required) is a type of list of stringnetwork_adapters=[]
# notify_switches - (optional) is a type of boolnotify_switches=null# number_of_ports - (optional) is a type of numbernumber_of_ports=null# shaping_average_bandwidth - (optional) is a type of numbershaping_average_bandwidth=null# shaping_burst_size - (optional) is a type of numbershaping_burst_size=null# shaping_enabled - (optional) is a type of boolshaping_enabled=null# shaping_peak_bandwidth - (optional) is a type of numbershaping_peak_bandwidth=null# standby_nics - (required) is a type of list of stringstandby_nics=[]
# teaming_policy - (optional) is a type of stringteaming_policy=null
}
variable"active_nics" {
description="(required) - List of active network adapters used for load balancing."type=list(string)
}
variable"allow_forged_transmits" {
description="(optional) - Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own."type=booldefault=null
}
variable"allow_mac_changes" {
description="(optional) - Controls whether or not the Media Access Control (MAC) address can be changed."type=booldefault=null
}
variable"allow_promiscuous" {
description="(optional) - Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port."type=booldefault=null
}
variable"beacon_interval" {
description="(optional) - Determines how often, in seconds, a beacon should be sent to probe for the validity of a link."type=numberdefault=null
}
variable"check_beacon" {
description="(optional) - Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only."type=booldefault=null
}
variable"failback" {
description="(optional) - If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up."type=booldefault=null
}
variable"host_system_id" {
description="(required) - The managed object ID of the host to set the virtual switch up on."type=string
}
variable"link_discovery_operation" {
description="(optional) - Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none."type=stringdefault=null
}
variable"link_discovery_protocol" {
description="(optional) - The discovery protocol type. Valid values are cdp and lldp."type=stringdefault=null
}
variable"mtu" {
description="(optional) - The maximum transmission unit (MTU) of the virtual switch in bytes."type=numberdefault=null
}
variable"name" {
description="(required) - The name of the virtual switch."type=string
}
variable"network_adapters" {
description="(required) - The list of network adapters to bind to this virtual switch."type=list(string)
}
variable"notify_switches" {
description="(optional) - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates."type=booldefault=null
}
variable"number_of_ports" {
description="(optional) - The number of ports that this virtual switch is configured to use."type=numberdefault=null
}
variable"shaping_average_bandwidth" {
description="(optional) - The average bandwidth in bits per second if traffic shaping is enabled."type=numberdefault=null
}
variable"shaping_burst_size" {
description="(optional) - The maximum burst size allowed in bytes if traffic shaping is enabled."type=numberdefault=null
}
variable"shaping_enabled" {
description="(optional) - Enable traffic shaping on this virtual switch or port group."type=booldefault=null
}
variable"shaping_peak_bandwidth" {
description="(optional) - The peak bandwidth during bursts in bits per second if traffic shaping is enabled."type=numberdefault=null
}
variable"standby_nics" {
description="(required) - List of standby network adapters used for failover."type=list(string)
}
variable"teaming_policy" {
description="(optional) - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit."type=stringdefault=null
}
resource"vsphere_host_virtual_switch""this" {
# active_nics - (required) is a type of list of stringactive_nics=var.active_nics# allow_forged_transmits - (optional) is a type of boolallow_forged_transmits=var.allow_forged_transmits# allow_mac_changes - (optional) is a type of boolallow_mac_changes=var.allow_mac_changes# allow_promiscuous - (optional) is a type of boolallow_promiscuous=var.allow_promiscuous# beacon_interval - (optional) is a type of numberbeacon_interval=var.beacon_interval# check_beacon - (optional) is a type of boolcheck_beacon=var.check_beacon# failback - (optional) is a type of boolfailback=var.failback# host_system_id - (required) is a type of stringhost_system_id=var.host_system_id# link_discovery_operation - (optional) is a type of stringlink_discovery_operation=var.link_discovery_operation# link_discovery_protocol - (optional) is a type of stringlink_discovery_protocol=var.link_discovery_protocol# mtu - (optional) is a type of numbermtu=var.mtu# name - (required) is a type of stringname=var.name# network_adapters - (required) is a type of list of stringnetwork_adapters=var.network_adapters# notify_switches - (optional) is a type of boolnotify_switches=var.notify_switches# number_of_ports - (optional) is a type of numbernumber_of_ports=var.number_of_ports# shaping_average_bandwidth - (optional) is a type of numbershaping_average_bandwidth=var.shaping_average_bandwidth# shaping_burst_size - (optional) is a type of numbershaping_burst_size=var.shaping_burst_size# shaping_enabled - (optional) is a type of boolshaping_enabled=var.shaping_enabled# shaping_peak_bandwidth - (optional) is a type of numbershaping_peak_bandwidth=var.shaping_peak_bandwidth# standby_nics - (required) is a type of list of stringstandby_nics=var.standby_nics# teaming_policy - (optional) is a type of stringteaming_policy=var.teaming_policy
}