DistributedVirtualSwitch
The vsphere..DistributedVirtualSwitch resource can be used to manage VMware
Distributed Virtual Switches.
An essential component of a distributed, scalable VMware datacenter, the
vSphere Distributed Virtual Switch (DVS) provides centralized management and
monitoring of the networking configuration of all the hosts that are associated
with the switch. In addition to adding port groups (see the
vsphere..DistributedPortGroup resource) that can
be used as networks for virtual machines, a DVS can be configured to perform
advanced high availability, traffic shaping, network monitoring, and more.
For an overview on vSphere networking concepts, see this page. For more information on vSphere DVS, see this page.
NOTE: This resource requires vCenter and is not available on direct ESXi connections.
Example Usage
Uplink name and count control
using Pulumi;
using VSphere = Pulumi.VSphere;
class MyStack : Stack
{
public MyStack()
{
var dvs = new VSphere.DistributedVirtualSwitch("dvs", new VSphere.DistributedVirtualSwitchArgs
{
ActiveUplinks =
{
"tfup1",
},
DatacenterId = data.Vsphere_datacenter.Dc.Id,
StandbyUplinks =
{
"tfup2",
},
Uplinks =
{
"tfup1",
"tfup2",
},
});
}
}
Coming soon!
import pulumi
import pulumi_vsphere as vsphere
dvs = vsphere.DistributedVirtualSwitch("dvs",
active_uplinks=["tfup1"],
datacenter_id=data["vsphere..Datacenter"]["dc"]["id"],
standby_uplinks=["tfup2"],
uplinks=[
"tfup1",
"tfup2",
])import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const dvs = new vsphere.DistributedVirtualSwitch("dvs", {
activeUplinks: ["tfup1"],
datacenterId: vsphere_datacenter_dc.id,
standbyUplinks: ["tfup2"],
uplinks: [
"tfup1",
"tfup2",
],
});Create a DistributedVirtualSwitch Resource
new DistributedVirtualSwitch(name: string, args: DistributedVirtualSwitchArgs, opts?: CustomResourceOptions);def DistributedVirtualSwitch(resource_name, opts=None, active_uplinks=None, allow_forged_transmits=None, allow_mac_changes=None, allow_promiscuous=None, block_all_ports=None, check_beacon=None, contact_detail=None, contact_name=None, custom_attributes=None, datacenter_id=None, description=None, directpath_gen2_allowed=None, egress_shaping_average_bandwidth=None, egress_shaping_burst_size=None, egress_shaping_enabled=None, egress_shaping_peak_bandwidth=None, failback=None, faulttolerance_maximum_mbit=None, faulttolerance_reservation_mbit=None, faulttolerance_share_count=None, faulttolerance_share_level=None, folder=None, hbr_maximum_mbit=None, hbr_reservation_mbit=None, hbr_share_count=None, hbr_share_level=None, hosts=None, ingress_shaping_average_bandwidth=None, ingress_shaping_burst_size=None, ingress_shaping_enabled=None, ingress_shaping_peak_bandwidth=None, ipv4_address=None, iscsi_maximum_mbit=None, iscsi_reservation_mbit=None, iscsi_share_count=None, iscsi_share_level=None, lacp_api_version=None, lacp_enabled=None, lacp_mode=None, link_discovery_operation=None, link_discovery_protocol=None, management_maximum_mbit=None, management_reservation_mbit=None, management_share_count=None, management_share_level=None, max_mtu=None, multicast_filtering_mode=None, name=None, netflow_active_flow_timeout=None, netflow_collector_ip_address=None, netflow_collector_port=None, netflow_enabled=None, netflow_idle_flow_timeout=None, netflow_internal_flows_only=None, netflow_observation_domain_id=None, netflow_sampling_rate=None, network_resource_control_enabled=None, network_resource_control_version=None, nfs_maximum_mbit=None, nfs_reservation_mbit=None, nfs_share_count=None, nfs_share_level=None, notify_switches=None, port_private_secondary_vlan_id=None, standby_uplinks=None, tags=None, teaming_policy=None, tx_uplink=None, uplinks=None, vdp_maximum_mbit=None, vdp_reservation_mbit=None, vdp_share_count=None, vdp_share_level=None, version=None, virtualmachine_maximum_mbit=None, virtualmachine_reservation_mbit=None, virtualmachine_share_count=None, virtualmachine_share_level=None, vlan_id=None, vlan_ranges=None, vmotion_maximum_mbit=None, vmotion_reservation_mbit=None, vmotion_share_count=None, vmotion_share_level=None, vsan_maximum_mbit=None, vsan_reservation_mbit=None, vsan_share_count=None, vsan_share_level=None, __props__=None);func NewDistributedVirtualSwitch(ctx *Context, name string, args DistributedVirtualSwitchArgs, opts ...ResourceOption) (*DistributedVirtualSwitch, error)public DistributedVirtualSwitch(string name, DistributedVirtualSwitchArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DistributedVirtualSwitchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DistributedVirtualSwitchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DistributedVirtualSwitchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
DistributedVirtualSwitch Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DistributedVirtualSwitch resource accepts the following input properties:
- Datacenter
Id string The ID of the datacenter where the distributed virtual switch will be created. Forces a new resource if changed.
- Active
Uplinks List<string> A list of active uplinks to be used in load balancing. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- Allow
Forged boolTransmits Controls whether or not a virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Block
All boolPorts Shuts down all ports in the port groups that this policy applies to, effectively blocking all network access to connected virtual devices.
- Check
Beacon bool Enables beacon probing as an additional measure to detect NIC failure.
- Contact
Detail string The detailed contact information for the person who is responsible for the DVS.
- Contact
Name string The name of the person who is responsible for the DVS.
- Custom
Attributes Dictionary<string, string> Map of custom attribute ids to attribute value strings to set for virtual switch.
- Description string
A detailed description for the DVS.
- Directpath
Gen2Allowed bool Allow VMDirectPath Gen2 for the ports for which this policy applies to.
- Egress
Shaping intAverage Bandwidth The average bandwidth in bits per second if egress traffic shaping is enabled on the port.
- Egress
Shaping intBurst Size The maximum burst size allowed in bytes if egress traffic shaping is enabled on the port.
- Egress
Shaping boolEnabled trueif the traffic shaper is enabled on the port for egress traffic.- Egress
Shaping intPeak Bandwidth The peak bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- Failback bool
If
true, the teaming policy will re-activate failed uplinks higher in precedence when they come back up.- Faulttolerance
Maximum intMbit The maximum allowed usage for the faultTolerance traffic class, in Mbits/sec.
- Faulttolerance
Reservation intMbit The amount of guaranteed bandwidth for the faultTolerance traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the faultTolerance traffic class for a custom share level.
- string
The allocation level for the faultTolerance traffic class. Can be one of high, low, normal, or custom.
- Folder string
The folder to create the DVS in. Forces a new resource if changed.
- Hbr
Maximum intMbit The maximum allowed usage for the hbr traffic class, in Mbits/sec.
- Hbr
Reservation intMbit The amount of guaranteed bandwidth for the hbr traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the hbr traffic class for a custom share level.
- string
The allocation level for the hbr traffic class. Can be one of high, low, normal, or custom.
- Hosts
List<Pulumi.
VSphere. Inputs. Distributed Virtual Switch Host Args> Use the
hostblock to declare a host specification. The options are:- Ingress
Shaping intAverage Bandwidth The average bandwidth in bits per second if ingress traffic shaping is enabled on the port.
- Ingress
Shaping intBurst Size The maximum burst size allowed in bytes if ingress traffic shaping is enabled on the port.
- Ingress
Shaping boolEnabled trueif the traffic shaper is enabled on the port for ingress traffic.- Ingress
Shaping intPeak Bandwidth The peak bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- Ipv4Address string
An IPv4 address to identify the switch. This is mostly useful when used with the Netflow arguments found below.
- Iscsi
Maximum intMbit The maximum allowed usage for the iSCSI traffic class, in Mbits/sec.
- Iscsi
Reservation intMbit The amount of guaranteed bandwidth for the iSCSI traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the iSCSI traffic class for a custom share level.
- string
The allocation level for the iSCSI traffic class. Can be one of high, low, normal, or custom.
- Lacp
Api stringVersion The Link Aggregation Control Protocol group version to use with the switch. Possible values are
singleLagandmultipleLag.- Lacp
Enabled bool Enables LACP for the ports that this policy applies to.
- Lacp
Mode string The LACP mode. Can be one of
activeorpassive.- Link
Discovery stringOperation Whether to
advertiseorlistenfor link discovery traffic.- Link
Discovery stringProtocol The discovery protocol type. Valid types are
cdpandlldp.- Management
Maximum intMbit The maximum allowed usage for the management traffic class, in Mbits/sec.
- Management
Reservation intMbit The amount of guaranteed bandwidth for the management traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the management traffic class for a custom share level.
- string
The allocation level for the management traffic class. Can be one of high, low, normal, or custom.
- Max
Mtu int The maximum transmission unit (MTU) for the virtual switch.
- Multicast
Filtering stringMode The multicast filtering mode to use with the switch. Can be one of
legacyFilteringorsnooping.- Name string
The name of the distributed virtual switch.
- Netflow
Active intFlow Timeout The number of seconds after which active flows are forced to be exported to the collector. Allowed range is
60to3600. Default:60.- Netflow
Collector stringIp Address IP address for the Netflow collector, using IPv4 or IPv6. IPv6 is supported in vSphere Distributed Switch Version 6.0 or later. Must be set before Netflow can be enabled.
- Netflow
Collector intPort Port for the Netflow collector. This must be set before Netflow can be enabled.
- Netflow
Enabled bool Enables Netflow on all ports that this policy applies to.
- Netflow
Idle intFlow Timeout The number of seconds after which idle flows are forced to be exported to the collector. Allowed range is
10to600. Default:15.- Netflow
Internal boolFlows Only Whether to limit analysis to traffic that has both source and destination served by the same host. Default:
false.- Netflow
Observation intDomain Id The observation domain ID for the Netflow collector.
- Netflow
Sampling intRate The ratio of total number of packets to the number of packets analyzed. The default is
0, which indicates that the switch should analyze all packets. The maximum value is1000, which indicates an analysis rate of 0.001%.- Network
Resource boolControl Enabled Set to
trueto enable network I/O control. Default:false.- Network
Resource stringControl Version The version of network I/O control to use. Can be one of
version2orversion3. Default:version2.- Nfs
Maximum intMbit The maximum allowed usage for the nfs traffic class, in Mbits/sec.
- Nfs
Reservation intMbit The amount of guaranteed bandwidth for the nfs traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the nfs traffic class for a custom share level.
- string
The allocation level for the nfs traffic class. Can be one of high, low, normal, or custom.
- Notify
Switches bool If
true, the teaming policy will notify the broadcast network of an uplink failover, triggering cache updates.- Port
Private intSecondary Vlan Id Used to define a secondary VLAN ID when using private VLANs.
- Standby
Uplinks List<string> A list of standby uplinks to be used in failover. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- List<string>
The IDs of any tags to attach to this resource.
- Teaming
Policy string The uplink teaming policy. Can be one of
loadbalance_ip,loadbalance_srcmac,loadbalance_srcid, orfailover_explicit.- Tx
Uplink bool Forward all traffic transmitted by ports for which this policy applies to its DVS uplinks.
- Uplinks List<string>
A list of strings that uniquely identifies the names of the uplinks on the DVS across hosts. The number of items in this list controls the number of uplinks that exist on the DVS, in addition to the names. See here for an example on how to use this option.
- Vdp
Maximum intMbit The maximum allowed usage for the vdp traffic class, in Mbits/sec.
- Vdp
Reservation intMbit The amount of guaranteed bandwidth for the vdp traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vdp traffic class for a custom share level.
- string
The allocation level for the vdp traffic class. Can be one of high, low, normal, or custom.
- Version string
- The version of the DVS to create. The default is to create the DVS at the latest version supported by the version of vSphere being used. A DVS can be upgraded to another version, but cannot be downgraded.
- Virtualmachine
Maximum intMbit The maximum allowed usage for the virtualMachine traffic class, in Mbits/sec.
- Virtualmachine
Reservation intMbit The amount of guaranteed bandwidth for the virtualMachine traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the virtualMachine traffic class for a custom share level.
- string
The allocation level for the virtualMachine traffic class. Can be one of high, low, normal, or custom.
- Vlan
Id int The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Vlan
Ranges List<Pulumi.VSphere. Inputs. Distributed Virtual Switch Vlan Range Args> Used to denote VLAN trunking. Use the
min_vlanandmax_vlansub-arguments to define the tagged VLAN range. Multiplevlan_rangedefinitions are allowed, but they must not overlap. Example below:- Vmotion
Maximum intMbit The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
- Vmotion
Reservation intMbit The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vmotion traffic class for a custom share level.
- string
The allocation level for the vmotion traffic class. Can be one of high, low, normal, or custom.
- Vsan
Maximum intMbit The maximum allowed usage for the vsan traffic class, in Mbits/sec.
- Vsan
Reservation intMbit The amount of guaranteed bandwidth for the vsan traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vsan traffic class for a custom share level.
- string
The allocation level for the vsan traffic class. Can be one of high, low, normal, or custom.
- Datacenter
Id string The ID of the datacenter where the distributed virtual switch will be created. Forces a new resource if changed.
- Active
Uplinks []string A list of active uplinks to be used in load balancing. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- Allow
Forged boolTransmits Controls whether or not a virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Block
All boolPorts Shuts down all ports in the port groups that this policy applies to, effectively blocking all network access to connected virtual devices.
- Check
Beacon bool Enables beacon probing as an additional measure to detect NIC failure.
- Contact
Detail string The detailed contact information for the person who is responsible for the DVS.
- Contact
Name string The name of the person who is responsible for the DVS.
- Custom
Attributes map[string]string Map of custom attribute ids to attribute value strings to set for virtual switch.
- Description string
A detailed description for the DVS.
- Directpath
Gen2Allowed bool Allow VMDirectPath Gen2 for the ports for which this policy applies to.
- Egress
Shaping intAverage Bandwidth The average bandwidth in bits per second if egress traffic shaping is enabled on the port.
- Egress
Shaping intBurst Size The maximum burst size allowed in bytes if egress traffic shaping is enabled on the port.
- Egress
Shaping boolEnabled trueif the traffic shaper is enabled on the port for egress traffic.- Egress
Shaping intPeak Bandwidth The peak bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- Failback bool
If
true, the teaming policy will re-activate failed uplinks higher in precedence when they come back up.- Faulttolerance
Maximum intMbit The maximum allowed usage for the faultTolerance traffic class, in Mbits/sec.
- Faulttolerance
Reservation intMbit The amount of guaranteed bandwidth for the faultTolerance traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the faultTolerance traffic class for a custom share level.
- string
The allocation level for the faultTolerance traffic class. Can be one of high, low, normal, or custom.
- Folder string
The folder to create the DVS in. Forces a new resource if changed.
- Hbr
Maximum intMbit The maximum allowed usage for the hbr traffic class, in Mbits/sec.
- Hbr
Reservation intMbit The amount of guaranteed bandwidth for the hbr traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the hbr traffic class for a custom share level.
- string
The allocation level for the hbr traffic class. Can be one of high, low, normal, or custom.
- Hosts
[]Distributed
Virtual Switch Host Use the
hostblock to declare a host specification. The options are:- Ingress
Shaping intAverage Bandwidth The average bandwidth in bits per second if ingress traffic shaping is enabled on the port.
- Ingress
Shaping intBurst Size The maximum burst size allowed in bytes if ingress traffic shaping is enabled on the port.
- Ingress
Shaping boolEnabled trueif the traffic shaper is enabled on the port for ingress traffic.- Ingress
Shaping intPeak Bandwidth The peak bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- Ipv4Address string
An IPv4 address to identify the switch. This is mostly useful when used with the Netflow arguments found below.
- Iscsi
Maximum intMbit The maximum allowed usage for the iSCSI traffic class, in Mbits/sec.
- Iscsi
Reservation intMbit The amount of guaranteed bandwidth for the iSCSI traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the iSCSI traffic class for a custom share level.
- string
The allocation level for the iSCSI traffic class. Can be one of high, low, normal, or custom.
- Lacp
Api stringVersion The Link Aggregation Control Protocol group version to use with the switch. Possible values are
singleLagandmultipleLag.- Lacp
Enabled bool Enables LACP for the ports that this policy applies to.
- Lacp
Mode string The LACP mode. Can be one of
activeorpassive.- Link
Discovery stringOperation Whether to
advertiseorlistenfor link discovery traffic.- Link
Discovery stringProtocol The discovery protocol type. Valid types are
cdpandlldp.- Management
Maximum intMbit The maximum allowed usage for the management traffic class, in Mbits/sec.
- Management
Reservation intMbit The amount of guaranteed bandwidth for the management traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the management traffic class for a custom share level.
- string
The allocation level for the management traffic class. Can be one of high, low, normal, or custom.
- Max
Mtu int The maximum transmission unit (MTU) for the virtual switch.
- Multicast
Filtering stringMode The multicast filtering mode to use with the switch. Can be one of
legacyFilteringorsnooping.- Name string
The name of the distributed virtual switch.
- Netflow
Active intFlow Timeout The number of seconds after which active flows are forced to be exported to the collector. Allowed range is
60to3600. Default:60.- Netflow
Collector stringIp Address IP address for the Netflow collector, using IPv4 or IPv6. IPv6 is supported in vSphere Distributed Switch Version 6.0 or later. Must be set before Netflow can be enabled.
- Netflow
Collector intPort Port for the Netflow collector. This must be set before Netflow can be enabled.
- Netflow
Enabled bool Enables Netflow on all ports that this policy applies to.
- Netflow
Idle intFlow Timeout The number of seconds after which idle flows are forced to be exported to the collector. Allowed range is
10to600. Default:15.- Netflow
Internal boolFlows Only Whether to limit analysis to traffic that has both source and destination served by the same host. Default:
false.- Netflow
Observation intDomain Id The observation domain ID for the Netflow collector.
- Netflow
Sampling intRate The ratio of total number of packets to the number of packets analyzed. The default is
0, which indicates that the switch should analyze all packets. The maximum value is1000, which indicates an analysis rate of 0.001%.- Network
Resource boolControl Enabled Set to
trueto enable network I/O control. Default:false.- Network
Resource stringControl Version The version of network I/O control to use. Can be one of
version2orversion3. Default:version2.- Nfs
Maximum intMbit The maximum allowed usage for the nfs traffic class, in Mbits/sec.
- Nfs
Reservation intMbit The amount of guaranteed bandwidth for the nfs traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the nfs traffic class for a custom share level.
- string
The allocation level for the nfs traffic class. Can be one of high, low, normal, or custom.
- Notify
Switches bool If
true, the teaming policy will notify the broadcast network of an uplink failover, triggering cache updates.- Port
Private intSecondary Vlan Id Used to define a secondary VLAN ID when using private VLANs.
- Standby
Uplinks []string A list of standby uplinks to be used in failover. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- []string
The IDs of any tags to attach to this resource.
- Teaming
Policy string The uplink teaming policy. Can be one of
loadbalance_ip,loadbalance_srcmac,loadbalance_srcid, orfailover_explicit.- Tx
Uplink bool Forward all traffic transmitted by ports for which this policy applies to its DVS uplinks.
- Uplinks []string
A list of strings that uniquely identifies the names of the uplinks on the DVS across hosts. The number of items in this list controls the number of uplinks that exist on the DVS, in addition to the names. See here for an example on how to use this option.
- Vdp
Maximum intMbit The maximum allowed usage for the vdp traffic class, in Mbits/sec.
- Vdp
Reservation intMbit The amount of guaranteed bandwidth for the vdp traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vdp traffic class for a custom share level.
- string
The allocation level for the vdp traffic class. Can be one of high, low, normal, or custom.
- Version string
- The version of the DVS to create. The default is to create the DVS at the latest version supported by the version of vSphere being used. A DVS can be upgraded to another version, but cannot be downgraded.
- Virtualmachine
Maximum intMbit The maximum allowed usage for the virtualMachine traffic class, in Mbits/sec.
- Virtualmachine
Reservation intMbit The amount of guaranteed bandwidth for the virtualMachine traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the virtualMachine traffic class for a custom share level.
- string
The allocation level for the virtualMachine traffic class. Can be one of high, low, normal, or custom.
- Vlan
Id int The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Vlan
Ranges []DistributedVirtual Switch Vlan Range Used to denote VLAN trunking. Use the
min_vlanandmax_vlansub-arguments to define the tagged VLAN range. Multiplevlan_rangedefinitions are allowed, but they must not overlap. Example below:- Vmotion
Maximum intMbit The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
- Vmotion
Reservation intMbit The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vmotion traffic class for a custom share level.
- string
The allocation level for the vmotion traffic class. Can be one of high, low, normal, or custom.
- Vsan
Maximum intMbit The maximum allowed usage for the vsan traffic class, in Mbits/sec.
- Vsan
Reservation intMbit The amount of guaranteed bandwidth for the vsan traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vsan traffic class for a custom share level.
- string
The allocation level for the vsan traffic class. Can be one of high, low, normal, or custom.
- datacenter
Id string The ID of the datacenter where the distributed virtual switch will be created. Forces a new resource if changed.
- active
Uplinks string[] A list of active uplinks to be used in load balancing. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- allow
Forged booleanTransmits Controls whether or not a virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac booleanChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous boolean Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- block
All booleanPorts Shuts down all ports in the port groups that this policy applies to, effectively blocking all network access to connected virtual devices.
- check
Beacon boolean Enables beacon probing as an additional measure to detect NIC failure.
- contact
Detail string The detailed contact information for the person who is responsible for the DVS.
- contact
Name string The name of the person who is responsible for the DVS.
- custom
Attributes {[key: string]: string} Map of custom attribute ids to attribute value strings to set for virtual switch.
- description string
A detailed description for the DVS.
- directpath
Gen2Allowed boolean Allow VMDirectPath Gen2 for the ports for which this policy applies to.
- egress
Shaping numberAverage Bandwidth The average bandwidth in bits per second if egress traffic shaping is enabled on the port.
- egress
Shaping numberBurst Size The maximum burst size allowed in bytes if egress traffic shaping is enabled on the port.
- egress
Shaping booleanEnabled trueif the traffic shaper is enabled on the port for egress traffic.- egress
Shaping numberPeak Bandwidth The peak bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback boolean
If
true, the teaming policy will re-activate failed uplinks higher in precedence when they come back up.- faulttolerance
Maximum numberMbit The maximum allowed usage for the faultTolerance traffic class, in Mbits/sec.
- faulttolerance
Reservation numberMbit The amount of guaranteed bandwidth for the faultTolerance traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the faultTolerance traffic class for a custom share level.
- string
The allocation level for the faultTolerance traffic class. Can be one of high, low, normal, or custom.
- folder string
The folder to create the DVS in. Forces a new resource if changed.
- hbr
Maximum numberMbit The maximum allowed usage for the hbr traffic class, in Mbits/sec.
- hbr
Reservation numberMbit The amount of guaranteed bandwidth for the hbr traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the hbr traffic class for a custom share level.
- string
The allocation level for the hbr traffic class. Can be one of high, low, normal, or custom.
- hosts
Distributed
Virtual Switch Host[] Use the
hostblock to declare a host specification. The options are:- ingress
Shaping numberAverage Bandwidth The average bandwidth in bits per second if ingress traffic shaping is enabled on the port.
- ingress
Shaping numberBurst Size The maximum burst size allowed in bytes if ingress traffic shaping is enabled on the port.
- ingress
Shaping booleanEnabled trueif the traffic shaper is enabled on the port for ingress traffic.- ingress
Shaping numberPeak Bandwidth The peak bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- ipv4Address string
An IPv4 address to identify the switch. This is mostly useful when used with the Netflow arguments found below.
- iscsi
Maximum numberMbit The maximum allowed usage for the iSCSI traffic class, in Mbits/sec.
- iscsi
Reservation numberMbit The amount of guaranteed bandwidth for the iSCSI traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the iSCSI traffic class for a custom share level.
- string
The allocation level for the iSCSI traffic class. Can be one of high, low, normal, or custom.
- lacp
Api stringVersion The Link Aggregation Control Protocol group version to use with the switch. Possible values are
singleLagandmultipleLag.- lacp
Enabled boolean Enables LACP for the ports that this policy applies to.
- lacp
Mode string The LACP mode. Can be one of
activeorpassive.- link
Discovery stringOperation Whether to
advertiseorlistenfor link discovery traffic.- link
Discovery stringProtocol The discovery protocol type. Valid types are
cdpandlldp.- management
Maximum numberMbit The maximum allowed usage for the management traffic class, in Mbits/sec.
- management
Reservation numberMbit The amount of guaranteed bandwidth for the management traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the management traffic class for a custom share level.
- string
The allocation level for the management traffic class. Can be one of high, low, normal, or custom.
- max
Mtu number The maximum transmission unit (MTU) for the virtual switch.
- multicast
Filtering stringMode The multicast filtering mode to use with the switch. Can be one of
legacyFilteringorsnooping.- name string
The name of the distributed virtual switch.
- netflow
Active numberFlow Timeout The number of seconds after which active flows are forced to be exported to the collector. Allowed range is
60to3600. Default:60.- netflow
Collector stringIp Address IP address for the Netflow collector, using IPv4 or IPv6. IPv6 is supported in vSphere Distributed Switch Version 6.0 or later. Must be set before Netflow can be enabled.
- netflow
Collector numberPort Port for the Netflow collector. This must be set before Netflow can be enabled.
- netflow
Enabled boolean Enables Netflow on all ports that this policy applies to.
- netflow
Idle numberFlow Timeout The number of seconds after which idle flows are forced to be exported to the collector. Allowed range is
10to600. Default:15.- netflow
Internal booleanFlows Only Whether to limit analysis to traffic that has both source and destination served by the same host. Default:
false.- netflow
Observation numberDomain Id The observation domain ID for the Netflow collector.
- netflow
Sampling numberRate The ratio of total number of packets to the number of packets analyzed. The default is
0, which indicates that the switch should analyze all packets. The maximum value is1000, which indicates an analysis rate of 0.001%.- network
Resource booleanControl Enabled Set to
trueto enable network I/O control. Default:false.- network
Resource stringControl Version The version of network I/O control to use. Can be one of
version2orversion3. Default:version2.- nfs
Maximum numberMbit The maximum allowed usage for the nfs traffic class, in Mbits/sec.
- nfs
Reservation numberMbit The amount of guaranteed bandwidth for the nfs traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the nfs traffic class for a custom share level.
- string
The allocation level for the nfs traffic class. Can be one of high, low, normal, or custom.
- notify
Switches boolean If
true, the teaming policy will notify the broadcast network of an uplink failover, triggering cache updates.- port
Private numberSecondary Vlan Id Used to define a secondary VLAN ID when using private VLANs.
- standby
Uplinks string[] A list of standby uplinks to be used in failover. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- string[]
The IDs of any tags to attach to this resource.
- teaming
Policy string The uplink teaming policy. Can be one of
loadbalance_ip,loadbalance_srcmac,loadbalance_srcid, orfailover_explicit.- tx
Uplink boolean Forward all traffic transmitted by ports for which this policy applies to its DVS uplinks.
- uplinks string[]
A list of strings that uniquely identifies the names of the uplinks on the DVS across hosts. The number of items in this list controls the number of uplinks that exist on the DVS, in addition to the names. See here for an example on how to use this option.
- vdp
Maximum numberMbit The maximum allowed usage for the vdp traffic class, in Mbits/sec.
- vdp
Reservation numberMbit The amount of guaranteed bandwidth for the vdp traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the vdp traffic class for a custom share level.
- string
The allocation level for the vdp traffic class. Can be one of high, low, normal, or custom.
- version string
- The version of the DVS to create. The default is to create the DVS at the latest version supported by the version of vSphere being used. A DVS can be upgraded to another version, but cannot be downgraded.
- virtualmachine
Maximum numberMbit The maximum allowed usage for the virtualMachine traffic class, in Mbits/sec.
- virtualmachine
Reservation numberMbit The amount of guaranteed bandwidth for the virtualMachine traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the virtualMachine traffic class for a custom share level.
- string
The allocation level for the virtualMachine traffic class. Can be one of high, low, normal, or custom.
- vlan
Id number The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan
Ranges DistributedVirtual Switch Vlan Range[] Used to denote VLAN trunking. Use the
min_vlanandmax_vlansub-arguments to define the tagged VLAN range. Multiplevlan_rangedefinitions are allowed, but they must not overlap. Example below:- vmotion
Maximum numberMbit The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
- vmotion
Reservation numberMbit The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the vmotion traffic class for a custom share level.
- string
The allocation level for the vmotion traffic class. Can be one of high, low, normal, or custom.
- vsan
Maximum numberMbit The maximum allowed usage for the vsan traffic class, in Mbits/sec.
- vsan
Reservation numberMbit The amount of guaranteed bandwidth for the vsan traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the vsan traffic class for a custom share level.
- string
The allocation level for the vsan traffic class. Can be one of high, low, normal, or custom.
- datacenter_
id str The ID of the datacenter where the distributed virtual switch will be created. Forces a new resource if changed.
- active_
uplinks List[str] A list of active uplinks to be used in load balancing. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- allow_
forged_ booltransmits Controls whether or not a virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow_
mac_ boolchanges Controls whether or not the Media Access Control (MAC) address can be changed.
- allow_
promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- block_
all_ boolports Shuts down all ports in the port groups that this policy applies to, effectively blocking all network access to connected virtual devices.
- check_
beacon bool Enables beacon probing as an additional measure to detect NIC failure.
- contact_
detail str The detailed contact information for the person who is responsible for the DVS.
- contact_
name str The name of the person who is responsible for the DVS.
- custom_
attributes Dict[str, str] Map of custom attribute ids to attribute value strings to set for virtual switch.
- description str
A detailed description for the DVS.
- directpath_
gen2_ boolallowed Allow VMDirectPath Gen2 for the ports for which this policy applies to.
- egress_
shaping_ floataverage_ bandwidth The average bandwidth in bits per second if egress traffic shaping is enabled on the port.
- egress_
shaping_ floatburst_ size The maximum burst size allowed in bytes if egress traffic shaping is enabled on the port.
- egress_
shaping_ boolenabled trueif the traffic shaper is enabled on the port for egress traffic.- egress_
shaping_ floatpeak_ bandwidth The peak bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback bool
If
true, the teaming policy will re-activate failed uplinks higher in precedence when they come back up.- faulttolerance_
maximum_ floatmbit The maximum allowed usage for the faultTolerance traffic class, in Mbits/sec.
- faulttolerance_
reservation_ floatmbit The amount of guaranteed bandwidth for the faultTolerance traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the faultTolerance traffic class for a custom share level.
- str
The allocation level for the faultTolerance traffic class. Can be one of high, low, normal, or custom.
- folder str
The folder to create the DVS in. Forces a new resource if changed.
- hbr_
maximum_ floatmbit The maximum allowed usage for the hbr traffic class, in Mbits/sec.
- hbr_
reservation_ floatmbit The amount of guaranteed bandwidth for the hbr traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the hbr traffic class for a custom share level.
- str
The allocation level for the hbr traffic class. Can be one of high, low, normal, or custom.
- hosts
List[Distributed
Virtual Switch Host] Use the
hostblock to declare a host specification. The options are:- ingress_
shaping_ floataverage_ bandwidth The average bandwidth in bits per second if ingress traffic shaping is enabled on the port.
- ingress_
shaping_ floatburst_ size The maximum burst size allowed in bytes if ingress traffic shaping is enabled on the port.
- ingress_
shaping_ boolenabled trueif the traffic shaper is enabled on the port for ingress traffic.- ingress_
shaping_ floatpeak_ bandwidth The peak bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- ipv4_
address str An IPv4 address to identify the switch. This is mostly useful when used with the Netflow arguments found below.
- iscsi_
maximum_ floatmbit The maximum allowed usage for the iSCSI traffic class, in Mbits/sec.
- iscsi_
reservation_ floatmbit The amount of guaranteed bandwidth for the iSCSI traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the iSCSI traffic class for a custom share level.
- str
The allocation level for the iSCSI traffic class. Can be one of high, low, normal, or custom.
- lacp_
api_ strversion The Link Aggregation Control Protocol group version to use with the switch. Possible values are
singleLagandmultipleLag.- lacp_
enabled bool Enables LACP for the ports that this policy applies to.
- lacp_
mode str The LACP mode. Can be one of
activeorpassive.- link_
discovery_ stroperation Whether to
advertiseorlistenfor link discovery traffic.- link_
discovery_ strprotocol The discovery protocol type. Valid types are
cdpandlldp.- management_
maximum_ floatmbit The maximum allowed usage for the management traffic class, in Mbits/sec.
- management_
reservation_ floatmbit The amount of guaranteed bandwidth for the management traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the management traffic class for a custom share level.
- str
The allocation level for the management traffic class. Can be one of high, low, normal, or custom.
- max_
mtu float The maximum transmission unit (MTU) for the virtual switch.
- multicast_
filtering_ strmode The multicast filtering mode to use with the switch. Can be one of
legacyFilteringorsnooping.- name str
The name of the distributed virtual switch.
- netflow_
active_ floatflow_ timeout The number of seconds after which active flows are forced to be exported to the collector. Allowed range is
60to3600. Default:60.- netflow_
collector_ strip_ address IP address for the Netflow collector, using IPv4 or IPv6. IPv6 is supported in vSphere Distributed Switch Version 6.0 or later. Must be set before Netflow can be enabled.
- netflow_
collector_ floatport Port for the Netflow collector. This must be set before Netflow can be enabled.
- netflow_
enabled bool Enables Netflow on all ports that this policy applies to.
- netflow_
idle_ floatflow_ timeout The number of seconds after which idle flows are forced to be exported to the collector. Allowed range is
10to600. Default:15.- netflow_
internal_ boolflows_ only Whether to limit analysis to traffic that has both source and destination served by the same host. Default:
false.- netflow_
observation_ floatdomain_ id The observation domain ID for the Netflow collector.
- netflow_
sampling_ floatrate The ratio of total number of packets to the number of packets analyzed. The default is
0, which indicates that the switch should analyze all packets. The maximum value is1000, which indicates an analysis rate of 0.001%.- network_
resource_ boolcontrol_ enabled Set to
trueto enable network I/O control. Default:false.- network_
resource_ strcontrol_ version The version of network I/O control to use. Can be one of
version2orversion3. Default:version2.- nfs_
maximum_ floatmbit The maximum allowed usage for the nfs traffic class, in Mbits/sec.
- nfs_
reservation_ floatmbit The amount of guaranteed bandwidth for the nfs traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the nfs traffic class for a custom share level.
- str
The allocation level for the nfs traffic class. Can be one of high, low, normal, or custom.
- notify_
switches bool If
true, the teaming policy will notify the broadcast network of an uplink failover, triggering cache updates.- port_
private_ floatsecondary_ vlan_ id Used to define a secondary VLAN ID when using private VLANs.
- standby_
uplinks List[str] A list of standby uplinks to be used in failover. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- List[str]
The IDs of any tags to attach to this resource.
- teaming_
policy str The uplink teaming policy. Can be one of
loadbalance_ip,loadbalance_srcmac,loadbalance_srcid, orfailover_explicit.- tx_
uplink bool Forward all traffic transmitted by ports for which this policy applies to its DVS uplinks.
- uplinks List[str]
A list of strings that uniquely identifies the names of the uplinks on the DVS across hosts. The number of items in this list controls the number of uplinks that exist on the DVS, in addition to the names. See here for an example on how to use this option.
- vdp_
maximum_ floatmbit The maximum allowed usage for the vdp traffic class, in Mbits/sec.
- vdp_
reservation_ floatmbit The amount of guaranteed bandwidth for the vdp traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the vdp traffic class for a custom share level.
- str
The allocation level for the vdp traffic class. Can be one of high, low, normal, or custom.
- version str
- The version of the DVS to create. The default is to create the DVS at the latest version supported by the version of vSphere being used. A DVS can be upgraded to another version, but cannot be downgraded.
- virtualmachine_
maximum_ floatmbit The maximum allowed usage for the virtualMachine traffic class, in Mbits/sec.
- virtualmachine_
reservation_ floatmbit The amount of guaranteed bandwidth for the virtualMachine traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the virtualMachine traffic class for a custom share level.
- str
The allocation level for the virtualMachine traffic class. Can be one of high, low, normal, or custom.
- vlan_
id float The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan_
ranges List[DistributedVirtual Switch Vlan Range] Used to denote VLAN trunking. Use the
min_vlanandmax_vlansub-arguments to define the tagged VLAN range. Multiplevlan_rangedefinitions are allowed, but they must not overlap. Example below:- vmotion_
maximum_ floatmbit The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
- vmotion_
reservation_ floatmbit The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the vmotion traffic class for a custom share level.
- str
The allocation level for the vmotion traffic class. Can be one of high, low, normal, or custom.
- vsan_
maximum_ floatmbit The maximum allowed usage for the vsan traffic class, in Mbits/sec.
- vsan_
reservation_ floatmbit The amount of guaranteed bandwidth for the vsan traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the vsan traffic class for a custom share level.
- str
The allocation level for the vsan traffic class. Can be one of high, low, normal, or custom.
Outputs
All input properties are implicitly available as output properties. Additionally, the DistributedVirtualSwitch resource produces the following output properties:
- Config
Version string The version string of the configuration that this spec is trying to change.
- Id string
- The provider-assigned unique ID for this managed resource.
- Config
Version string The version string of the configuration that this spec is trying to change.
- Id string
- The provider-assigned unique ID for this managed resource.
- config
Version string The version string of the configuration that this spec is trying to change.
- id string
- The provider-assigned unique ID for this managed resource.
- config_
version str The version string of the configuration that this spec is trying to change.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing DistributedVirtualSwitch Resource
Get an existing DistributedVirtualSwitch resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DistributedVirtualSwitchState, opts?: CustomResourceOptions): DistributedVirtualSwitchstatic get(resource_name, id, opts=None, active_uplinks=None, allow_forged_transmits=None, allow_mac_changes=None, allow_promiscuous=None, block_all_ports=None, check_beacon=None, config_version=None, contact_detail=None, contact_name=None, custom_attributes=None, datacenter_id=None, description=None, directpath_gen2_allowed=None, egress_shaping_average_bandwidth=None, egress_shaping_burst_size=None, egress_shaping_enabled=None, egress_shaping_peak_bandwidth=None, failback=None, faulttolerance_maximum_mbit=None, faulttolerance_reservation_mbit=None, faulttolerance_share_count=None, faulttolerance_share_level=None, folder=None, hbr_maximum_mbit=None, hbr_reservation_mbit=None, hbr_share_count=None, hbr_share_level=None, hosts=None, ingress_shaping_average_bandwidth=None, ingress_shaping_burst_size=None, ingress_shaping_enabled=None, ingress_shaping_peak_bandwidth=None, ipv4_address=None, iscsi_maximum_mbit=None, iscsi_reservation_mbit=None, iscsi_share_count=None, iscsi_share_level=None, lacp_api_version=None, lacp_enabled=None, lacp_mode=None, link_discovery_operation=None, link_discovery_protocol=None, management_maximum_mbit=None, management_reservation_mbit=None, management_share_count=None, management_share_level=None, max_mtu=None, multicast_filtering_mode=None, name=None, netflow_active_flow_timeout=None, netflow_collector_ip_address=None, netflow_collector_port=None, netflow_enabled=None, netflow_idle_flow_timeout=None, netflow_internal_flows_only=None, netflow_observation_domain_id=None, netflow_sampling_rate=None, network_resource_control_enabled=None, network_resource_control_version=None, nfs_maximum_mbit=None, nfs_reservation_mbit=None, nfs_share_count=None, nfs_share_level=None, notify_switches=None, port_private_secondary_vlan_id=None, standby_uplinks=None, tags=None, teaming_policy=None, tx_uplink=None, uplinks=None, vdp_maximum_mbit=None, vdp_reservation_mbit=None, vdp_share_count=None, vdp_share_level=None, version=None, virtualmachine_maximum_mbit=None, virtualmachine_reservation_mbit=None, virtualmachine_share_count=None, virtualmachine_share_level=None, vlan_id=None, vlan_ranges=None, vmotion_maximum_mbit=None, vmotion_reservation_mbit=None, vmotion_share_count=None, vmotion_share_level=None, vsan_maximum_mbit=None, vsan_reservation_mbit=None, vsan_share_count=None, vsan_share_level=None, __props__=None);func GetDistributedVirtualSwitch(ctx *Context, name string, id IDInput, state *DistributedVirtualSwitchState, opts ...ResourceOption) (*DistributedVirtualSwitch, error)public static DistributedVirtualSwitch Get(string name, Input<string> id, DistributedVirtualSwitchState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Active
Uplinks List<string> A list of active uplinks to be used in load balancing. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- Allow
Forged boolTransmits Controls whether or not a virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Block
All boolPorts Shuts down all ports in the port groups that this policy applies to, effectively blocking all network access to connected virtual devices.
- Check
Beacon bool Enables beacon probing as an additional measure to detect NIC failure.
- Config
Version string The version string of the configuration that this spec is trying to change.
- Contact
Detail string The detailed contact information for the person who is responsible for the DVS.
- Contact
Name string The name of the person who is responsible for the DVS.
- Custom
Attributes Dictionary<string, string> Map of custom attribute ids to attribute value strings to set for virtual switch.
- Datacenter
Id string The ID of the datacenter where the distributed virtual switch will be created. Forces a new resource if changed.
- Description string
A detailed description for the DVS.
- Directpath
Gen2Allowed bool Allow VMDirectPath Gen2 for the ports for which this policy applies to.
- Egress
Shaping intAverage Bandwidth The average bandwidth in bits per second if egress traffic shaping is enabled on the port.
- Egress
Shaping intBurst Size The maximum burst size allowed in bytes if egress traffic shaping is enabled on the port.
- Egress
Shaping boolEnabled trueif the traffic shaper is enabled on the port for egress traffic.- Egress
Shaping intPeak Bandwidth The peak bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- Failback bool
If
true, the teaming policy will re-activate failed uplinks higher in precedence when they come back up.- Faulttolerance
Maximum intMbit The maximum allowed usage for the faultTolerance traffic class, in Mbits/sec.
- Faulttolerance
Reservation intMbit The amount of guaranteed bandwidth for the faultTolerance traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the faultTolerance traffic class for a custom share level.
- string
The allocation level for the faultTolerance traffic class. Can be one of high, low, normal, or custom.
- Folder string
The folder to create the DVS in. Forces a new resource if changed.
- Hbr
Maximum intMbit The maximum allowed usage for the hbr traffic class, in Mbits/sec.
- Hbr
Reservation intMbit The amount of guaranteed bandwidth for the hbr traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the hbr traffic class for a custom share level.
- string
The allocation level for the hbr traffic class. Can be one of high, low, normal, or custom.
- Hosts
List<Pulumi.
VSphere. Inputs. Distributed Virtual Switch Host Args> Use the
hostblock to declare a host specification. The options are:- Ingress
Shaping intAverage Bandwidth The average bandwidth in bits per second if ingress traffic shaping is enabled on the port.
- Ingress
Shaping intBurst Size The maximum burst size allowed in bytes if ingress traffic shaping is enabled on the port.
- Ingress
Shaping boolEnabled trueif the traffic shaper is enabled on the port for ingress traffic.- Ingress
Shaping intPeak Bandwidth The peak bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- Ipv4Address string
An IPv4 address to identify the switch. This is mostly useful when used with the Netflow arguments found below.
- Iscsi
Maximum intMbit The maximum allowed usage for the iSCSI traffic class, in Mbits/sec.
- Iscsi
Reservation intMbit The amount of guaranteed bandwidth for the iSCSI traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the iSCSI traffic class for a custom share level.
- string
The allocation level for the iSCSI traffic class. Can be one of high, low, normal, or custom.
- Lacp
Api stringVersion The Link Aggregation Control Protocol group version to use with the switch. Possible values are
singleLagandmultipleLag.- Lacp
Enabled bool Enables LACP for the ports that this policy applies to.
- Lacp
Mode string The LACP mode. Can be one of
activeorpassive.- Link
Discovery stringOperation Whether to
advertiseorlistenfor link discovery traffic.- Link
Discovery stringProtocol The discovery protocol type. Valid types are
cdpandlldp.- Management
Maximum intMbit The maximum allowed usage for the management traffic class, in Mbits/sec.
- Management
Reservation intMbit The amount of guaranteed bandwidth for the management traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the management traffic class for a custom share level.
- string
The allocation level for the management traffic class. Can be one of high, low, normal, or custom.
- Max
Mtu int The maximum transmission unit (MTU) for the virtual switch.
- Multicast
Filtering stringMode The multicast filtering mode to use with the switch. Can be one of
legacyFilteringorsnooping.- Name string
The name of the distributed virtual switch.
- Netflow
Active intFlow Timeout The number of seconds after which active flows are forced to be exported to the collector. Allowed range is
60to3600. Default:60.- Netflow
Collector stringIp Address IP address for the Netflow collector, using IPv4 or IPv6. IPv6 is supported in vSphere Distributed Switch Version 6.0 or later. Must be set before Netflow can be enabled.
- Netflow
Collector intPort Port for the Netflow collector. This must be set before Netflow can be enabled.
- Netflow
Enabled bool Enables Netflow on all ports that this policy applies to.
- Netflow
Idle intFlow Timeout The number of seconds after which idle flows are forced to be exported to the collector. Allowed range is
10to600. Default:15.- Netflow
Internal boolFlows Only Whether to limit analysis to traffic that has both source and destination served by the same host. Default:
false.- Netflow
Observation intDomain Id The observation domain ID for the Netflow collector.
- Netflow
Sampling intRate The ratio of total number of packets to the number of packets analyzed. The default is
0, which indicates that the switch should analyze all packets. The maximum value is1000, which indicates an analysis rate of 0.001%.- Network
Resource boolControl Enabled Set to
trueto enable network I/O control. Default:false.- Network
Resource stringControl Version The version of network I/O control to use. Can be one of
version2orversion3. Default:version2.- Nfs
Maximum intMbit The maximum allowed usage for the nfs traffic class, in Mbits/sec.
- Nfs
Reservation intMbit The amount of guaranteed bandwidth for the nfs traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the nfs traffic class for a custom share level.
- string
The allocation level for the nfs traffic class. Can be one of high, low, normal, or custom.
- Notify
Switches bool If
true, the teaming policy will notify the broadcast network of an uplink failover, triggering cache updates.- Port
Private intSecondary Vlan Id Used to define a secondary VLAN ID when using private VLANs.
- Standby
Uplinks List<string> A list of standby uplinks to be used in failover. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- List<string>
The IDs of any tags to attach to this resource.
- Teaming
Policy string The uplink teaming policy. Can be one of
loadbalance_ip,loadbalance_srcmac,loadbalance_srcid, orfailover_explicit.- Tx
Uplink bool Forward all traffic transmitted by ports for which this policy applies to its DVS uplinks.
- Uplinks List<string>
A list of strings that uniquely identifies the names of the uplinks on the DVS across hosts. The number of items in this list controls the number of uplinks that exist on the DVS, in addition to the names. See here for an example on how to use this option.
- Vdp
Maximum intMbit The maximum allowed usage for the vdp traffic class, in Mbits/sec.
- Vdp
Reservation intMbit The amount of guaranteed bandwidth for the vdp traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vdp traffic class for a custom share level.
- string
The allocation level for the vdp traffic class. Can be one of high, low, normal, or custom.
- Version string
- The version of the DVS to create. The default is to create the DVS at the latest version supported by the version of vSphere being used. A DVS can be upgraded to another version, but cannot be downgraded.
- Virtualmachine
Maximum intMbit The maximum allowed usage for the virtualMachine traffic class, in Mbits/sec.
- Virtualmachine
Reservation intMbit The amount of guaranteed bandwidth for the virtualMachine traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the virtualMachine traffic class for a custom share level.
- string
The allocation level for the virtualMachine traffic class. Can be one of high, low, normal, or custom.
- Vlan
Id int The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Vlan
Ranges List<Pulumi.VSphere. Inputs. Distributed Virtual Switch Vlan Range Args> Used to denote VLAN trunking. Use the
min_vlanandmax_vlansub-arguments to define the tagged VLAN range. Multiplevlan_rangedefinitions are allowed, but they must not overlap. Example below:- Vmotion
Maximum intMbit The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
- Vmotion
Reservation intMbit The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vmotion traffic class for a custom share level.
- string
The allocation level for the vmotion traffic class. Can be one of high, low, normal, or custom.
- Vsan
Maximum intMbit The maximum allowed usage for the vsan traffic class, in Mbits/sec.
- Vsan
Reservation intMbit The amount of guaranteed bandwidth for the vsan traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vsan traffic class for a custom share level.
- string
The allocation level for the vsan traffic class. Can be one of high, low, normal, or custom.
- Active
Uplinks []string A list of active uplinks to be used in load balancing. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- Allow
Forged boolTransmits Controls whether or not a virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Block
All boolPorts Shuts down all ports in the port groups that this policy applies to, effectively blocking all network access to connected virtual devices.
- Check
Beacon bool Enables beacon probing as an additional measure to detect NIC failure.
- Config
Version string The version string of the configuration that this spec is trying to change.
- Contact
Detail string The detailed contact information for the person who is responsible for the DVS.
- Contact
Name string The name of the person who is responsible for the DVS.
- Custom
Attributes map[string]string Map of custom attribute ids to attribute value strings to set for virtual switch.
- Datacenter
Id string The ID of the datacenter where the distributed virtual switch will be created. Forces a new resource if changed.
- Description string
A detailed description for the DVS.
- Directpath
Gen2Allowed bool Allow VMDirectPath Gen2 for the ports for which this policy applies to.
- Egress
Shaping intAverage Bandwidth The average bandwidth in bits per second if egress traffic shaping is enabled on the port.
- Egress
Shaping intBurst Size The maximum burst size allowed in bytes if egress traffic shaping is enabled on the port.
- Egress
Shaping boolEnabled trueif the traffic shaper is enabled on the port for egress traffic.- Egress
Shaping intPeak Bandwidth The peak bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- Failback bool
If
true, the teaming policy will re-activate failed uplinks higher in precedence when they come back up.- Faulttolerance
Maximum intMbit The maximum allowed usage for the faultTolerance traffic class, in Mbits/sec.
- Faulttolerance
Reservation intMbit The amount of guaranteed bandwidth for the faultTolerance traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the faultTolerance traffic class for a custom share level.
- string
The allocation level for the faultTolerance traffic class. Can be one of high, low, normal, or custom.
- Folder string
The folder to create the DVS in. Forces a new resource if changed.
- Hbr
Maximum intMbit The maximum allowed usage for the hbr traffic class, in Mbits/sec.
- Hbr
Reservation intMbit The amount of guaranteed bandwidth for the hbr traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the hbr traffic class for a custom share level.
- string
The allocation level for the hbr traffic class. Can be one of high, low, normal, or custom.
- Hosts
[]Distributed
Virtual Switch Host Use the
hostblock to declare a host specification. The options are:- Ingress
Shaping intAverage Bandwidth The average bandwidth in bits per second if ingress traffic shaping is enabled on the port.
- Ingress
Shaping intBurst Size The maximum burst size allowed in bytes if ingress traffic shaping is enabled on the port.
- Ingress
Shaping boolEnabled trueif the traffic shaper is enabled on the port for ingress traffic.- Ingress
Shaping intPeak Bandwidth The peak bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- Ipv4Address string
An IPv4 address to identify the switch. This is mostly useful when used with the Netflow arguments found below.
- Iscsi
Maximum intMbit The maximum allowed usage for the iSCSI traffic class, in Mbits/sec.
- Iscsi
Reservation intMbit The amount of guaranteed bandwidth for the iSCSI traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the iSCSI traffic class for a custom share level.
- string
The allocation level for the iSCSI traffic class. Can be one of high, low, normal, or custom.
- Lacp
Api stringVersion The Link Aggregation Control Protocol group version to use with the switch. Possible values are
singleLagandmultipleLag.- Lacp
Enabled bool Enables LACP for the ports that this policy applies to.
- Lacp
Mode string The LACP mode. Can be one of
activeorpassive.- Link
Discovery stringOperation Whether to
advertiseorlistenfor link discovery traffic.- Link
Discovery stringProtocol The discovery protocol type. Valid types are
cdpandlldp.- Management
Maximum intMbit The maximum allowed usage for the management traffic class, in Mbits/sec.
- Management
Reservation intMbit The amount of guaranteed bandwidth for the management traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the management traffic class for a custom share level.
- string
The allocation level for the management traffic class. Can be one of high, low, normal, or custom.
- Max
Mtu int The maximum transmission unit (MTU) for the virtual switch.
- Multicast
Filtering stringMode The multicast filtering mode to use with the switch. Can be one of
legacyFilteringorsnooping.- Name string
The name of the distributed virtual switch.
- Netflow
Active intFlow Timeout The number of seconds after which active flows are forced to be exported to the collector. Allowed range is
60to3600. Default:60.- Netflow
Collector stringIp Address IP address for the Netflow collector, using IPv4 or IPv6. IPv6 is supported in vSphere Distributed Switch Version 6.0 or later. Must be set before Netflow can be enabled.
- Netflow
Collector intPort Port for the Netflow collector. This must be set before Netflow can be enabled.
- Netflow
Enabled bool Enables Netflow on all ports that this policy applies to.
- Netflow
Idle intFlow Timeout The number of seconds after which idle flows are forced to be exported to the collector. Allowed range is
10to600. Default:15.- Netflow
Internal boolFlows Only Whether to limit analysis to traffic that has both source and destination served by the same host. Default:
false.- Netflow
Observation intDomain Id The observation domain ID for the Netflow collector.
- Netflow
Sampling intRate The ratio of total number of packets to the number of packets analyzed. The default is
0, which indicates that the switch should analyze all packets. The maximum value is1000, which indicates an analysis rate of 0.001%.- Network
Resource boolControl Enabled Set to
trueto enable network I/O control. Default:false.- Network
Resource stringControl Version The version of network I/O control to use. Can be one of
version2orversion3. Default:version2.- Nfs
Maximum intMbit The maximum allowed usage for the nfs traffic class, in Mbits/sec.
- Nfs
Reservation intMbit The amount of guaranteed bandwidth for the nfs traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the nfs traffic class for a custom share level.
- string
The allocation level for the nfs traffic class. Can be one of high, low, normal, or custom.
- Notify
Switches bool If
true, the teaming policy will notify the broadcast network of an uplink failover, triggering cache updates.- Port
Private intSecondary Vlan Id Used to define a secondary VLAN ID when using private VLANs.
- Standby
Uplinks []string A list of standby uplinks to be used in failover. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- []string
The IDs of any tags to attach to this resource.
- Teaming
Policy string The uplink teaming policy. Can be one of
loadbalance_ip,loadbalance_srcmac,loadbalance_srcid, orfailover_explicit.- Tx
Uplink bool Forward all traffic transmitted by ports for which this policy applies to its DVS uplinks.
- Uplinks []string
A list of strings that uniquely identifies the names of the uplinks on the DVS across hosts. The number of items in this list controls the number of uplinks that exist on the DVS, in addition to the names. See here for an example on how to use this option.
- Vdp
Maximum intMbit The maximum allowed usage for the vdp traffic class, in Mbits/sec.
- Vdp
Reservation intMbit The amount of guaranteed bandwidth for the vdp traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vdp traffic class for a custom share level.
- string
The allocation level for the vdp traffic class. Can be one of high, low, normal, or custom.
- Version string
- The version of the DVS to create. The default is to create the DVS at the latest version supported by the version of vSphere being used. A DVS can be upgraded to another version, but cannot be downgraded.
- Virtualmachine
Maximum intMbit The maximum allowed usage for the virtualMachine traffic class, in Mbits/sec.
- Virtualmachine
Reservation intMbit The amount of guaranteed bandwidth for the virtualMachine traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the virtualMachine traffic class for a custom share level.
- string
The allocation level for the virtualMachine traffic class. Can be one of high, low, normal, or custom.
- Vlan
Id int The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Vlan
Ranges []DistributedVirtual Switch Vlan Range Used to denote VLAN trunking. Use the
min_vlanandmax_vlansub-arguments to define the tagged VLAN range. Multiplevlan_rangedefinitions are allowed, but they must not overlap. Example below:- Vmotion
Maximum intMbit The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
- Vmotion
Reservation intMbit The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vmotion traffic class for a custom share level.
- string
The allocation level for the vmotion traffic class. Can be one of high, low, normal, or custom.
- Vsan
Maximum intMbit The maximum allowed usage for the vsan traffic class, in Mbits/sec.
- Vsan
Reservation intMbit The amount of guaranteed bandwidth for the vsan traffic class, in Mbits/sec.
- int
The amount of shares to allocate to the vsan traffic class for a custom share level.
- string
The allocation level for the vsan traffic class. Can be one of high, low, normal, or custom.
- active
Uplinks string[] A list of active uplinks to be used in load balancing. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- allow
Forged booleanTransmits Controls whether or not a virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac booleanChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous boolean Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- block
All booleanPorts Shuts down all ports in the port groups that this policy applies to, effectively blocking all network access to connected virtual devices.
- check
Beacon boolean Enables beacon probing as an additional measure to detect NIC failure.
- config
Version string The version string of the configuration that this spec is trying to change.
- contact
Detail string The detailed contact information for the person who is responsible for the DVS.
- contact
Name string The name of the person who is responsible for the DVS.
- custom
Attributes {[key: string]: string} Map of custom attribute ids to attribute value strings to set for virtual switch.
- datacenter
Id string The ID of the datacenter where the distributed virtual switch will be created. Forces a new resource if changed.
- description string
A detailed description for the DVS.
- directpath
Gen2Allowed boolean Allow VMDirectPath Gen2 for the ports for which this policy applies to.
- egress
Shaping numberAverage Bandwidth The average bandwidth in bits per second if egress traffic shaping is enabled on the port.
- egress
Shaping numberBurst Size The maximum burst size allowed in bytes if egress traffic shaping is enabled on the port.
- egress
Shaping booleanEnabled trueif the traffic shaper is enabled on the port for egress traffic.- egress
Shaping numberPeak Bandwidth The peak bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback boolean
If
true, the teaming policy will re-activate failed uplinks higher in precedence when they come back up.- faulttolerance
Maximum numberMbit The maximum allowed usage for the faultTolerance traffic class, in Mbits/sec.
- faulttolerance
Reservation numberMbit The amount of guaranteed bandwidth for the faultTolerance traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the faultTolerance traffic class for a custom share level.
- string
The allocation level for the faultTolerance traffic class. Can be one of high, low, normal, or custom.
- folder string
The folder to create the DVS in. Forces a new resource if changed.
- hbr
Maximum numberMbit The maximum allowed usage for the hbr traffic class, in Mbits/sec.
- hbr
Reservation numberMbit The amount of guaranteed bandwidth for the hbr traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the hbr traffic class for a custom share level.
- string
The allocation level for the hbr traffic class. Can be one of high, low, normal, or custom.
- hosts
Distributed
Virtual Switch Host[] Use the
hostblock to declare a host specification. The options are:- ingress
Shaping numberAverage Bandwidth The average bandwidth in bits per second if ingress traffic shaping is enabled on the port.
- ingress
Shaping numberBurst Size The maximum burst size allowed in bytes if ingress traffic shaping is enabled on the port.
- ingress
Shaping booleanEnabled trueif the traffic shaper is enabled on the port for ingress traffic.- ingress
Shaping numberPeak Bandwidth The peak bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- ipv4Address string
An IPv4 address to identify the switch. This is mostly useful when used with the Netflow arguments found below.
- iscsi
Maximum numberMbit The maximum allowed usage for the iSCSI traffic class, in Mbits/sec.
- iscsi
Reservation numberMbit The amount of guaranteed bandwidth for the iSCSI traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the iSCSI traffic class for a custom share level.
- string
The allocation level for the iSCSI traffic class. Can be one of high, low, normal, or custom.
- lacp
Api stringVersion The Link Aggregation Control Protocol group version to use with the switch. Possible values are
singleLagandmultipleLag.- lacp
Enabled boolean Enables LACP for the ports that this policy applies to.
- lacp
Mode string The LACP mode. Can be one of
activeorpassive.- link
Discovery stringOperation Whether to
advertiseorlistenfor link discovery traffic.- link
Discovery stringProtocol The discovery protocol type. Valid types are
cdpandlldp.- management
Maximum numberMbit The maximum allowed usage for the management traffic class, in Mbits/sec.
- management
Reservation numberMbit The amount of guaranteed bandwidth for the management traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the management traffic class for a custom share level.
- string
The allocation level for the management traffic class. Can be one of high, low, normal, or custom.
- max
Mtu number The maximum transmission unit (MTU) for the virtual switch.
- multicast
Filtering stringMode The multicast filtering mode to use with the switch. Can be one of
legacyFilteringorsnooping.- name string
The name of the distributed virtual switch.
- netflow
Active numberFlow Timeout The number of seconds after which active flows are forced to be exported to the collector. Allowed range is
60to3600. Default:60.- netflow
Collector stringIp Address IP address for the Netflow collector, using IPv4 or IPv6. IPv6 is supported in vSphere Distributed Switch Version 6.0 or later. Must be set before Netflow can be enabled.
- netflow
Collector numberPort Port for the Netflow collector. This must be set before Netflow can be enabled.
- netflow
Enabled boolean Enables Netflow on all ports that this policy applies to.
- netflow
Idle numberFlow Timeout The number of seconds after which idle flows are forced to be exported to the collector. Allowed range is
10to600. Default:15.- netflow
Internal booleanFlows Only Whether to limit analysis to traffic that has both source and destination served by the same host. Default:
false.- netflow
Observation numberDomain Id The observation domain ID for the Netflow collector.
- netflow
Sampling numberRate The ratio of total number of packets to the number of packets analyzed. The default is
0, which indicates that the switch should analyze all packets. The maximum value is1000, which indicates an analysis rate of 0.001%.- network
Resource booleanControl Enabled Set to
trueto enable network I/O control. Default:false.- network
Resource stringControl Version The version of network I/O control to use. Can be one of
version2orversion3. Default:version2.- nfs
Maximum numberMbit The maximum allowed usage for the nfs traffic class, in Mbits/sec.
- nfs
Reservation numberMbit The amount of guaranteed bandwidth for the nfs traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the nfs traffic class for a custom share level.
- string
The allocation level for the nfs traffic class. Can be one of high, low, normal, or custom.
- notify
Switches boolean If
true, the teaming policy will notify the broadcast network of an uplink failover, triggering cache updates.- port
Private numberSecondary Vlan Id Used to define a secondary VLAN ID when using private VLANs.
- standby
Uplinks string[] A list of standby uplinks to be used in failover. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- string[]
The IDs of any tags to attach to this resource.
- teaming
Policy string The uplink teaming policy. Can be one of
loadbalance_ip,loadbalance_srcmac,loadbalance_srcid, orfailover_explicit.- tx
Uplink boolean Forward all traffic transmitted by ports for which this policy applies to its DVS uplinks.
- uplinks string[]
A list of strings that uniquely identifies the names of the uplinks on the DVS across hosts. The number of items in this list controls the number of uplinks that exist on the DVS, in addition to the names. See here for an example on how to use this option.
- vdp
Maximum numberMbit The maximum allowed usage for the vdp traffic class, in Mbits/sec.
- vdp
Reservation numberMbit The amount of guaranteed bandwidth for the vdp traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the vdp traffic class for a custom share level.
- string
The allocation level for the vdp traffic class. Can be one of high, low, normal, or custom.
- version string
- The version of the DVS to create. The default is to create the DVS at the latest version supported by the version of vSphere being used. A DVS can be upgraded to another version, but cannot be downgraded.
- virtualmachine
Maximum numberMbit The maximum allowed usage for the virtualMachine traffic class, in Mbits/sec.
- virtualmachine
Reservation numberMbit The amount of guaranteed bandwidth for the virtualMachine traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the virtualMachine traffic class for a custom share level.
- string
The allocation level for the virtualMachine traffic class. Can be one of high, low, normal, or custom.
- vlan
Id number The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan
Ranges DistributedVirtual Switch Vlan Range[] Used to denote VLAN trunking. Use the
min_vlanandmax_vlansub-arguments to define the tagged VLAN range. Multiplevlan_rangedefinitions are allowed, but they must not overlap. Example below:- vmotion
Maximum numberMbit The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
- vmotion
Reservation numberMbit The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the vmotion traffic class for a custom share level.
- string
The allocation level for the vmotion traffic class. Can be one of high, low, normal, or custom.
- vsan
Maximum numberMbit The maximum allowed usage for the vsan traffic class, in Mbits/sec.
- vsan
Reservation numberMbit The amount of guaranteed bandwidth for the vsan traffic class, in Mbits/sec.
- number
The amount of shares to allocate to the vsan traffic class for a custom share level.
- string
The allocation level for the vsan traffic class. Can be one of high, low, normal, or custom.
- active_
uplinks List[str] A list of active uplinks to be used in load balancing. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- allow_
forged_ booltransmits Controls whether or not a virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow_
mac_ boolchanges Controls whether or not the Media Access Control (MAC) address can be changed.
- allow_
promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- block_
all_ boolports Shuts down all ports in the port groups that this policy applies to, effectively blocking all network access to connected virtual devices.
- check_
beacon bool Enables beacon probing as an additional measure to detect NIC failure.
- config_
version str The version string of the configuration that this spec is trying to change.
- contact_
detail str The detailed contact information for the person who is responsible for the DVS.
- contact_
name str The name of the person who is responsible for the DVS.
- custom_
attributes Dict[str, str] Map of custom attribute ids to attribute value strings to set for virtual switch.
- datacenter_
id str The ID of the datacenter where the distributed virtual switch will be created. Forces a new resource if changed.
- description str
A detailed description for the DVS.
- directpath_
gen2_ boolallowed Allow VMDirectPath Gen2 for the ports for which this policy applies to.
- egress_
shaping_ floataverage_ bandwidth The average bandwidth in bits per second if egress traffic shaping is enabled on the port.
- egress_
shaping_ floatburst_ size The maximum burst size allowed in bytes if egress traffic shaping is enabled on the port.
- egress_
shaping_ boolenabled trueif the traffic shaper is enabled on the port for egress traffic.- egress_
shaping_ floatpeak_ bandwidth The peak bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback bool
If
true, the teaming policy will re-activate failed uplinks higher in precedence when they come back up.- faulttolerance_
maximum_ floatmbit The maximum allowed usage for the faultTolerance traffic class, in Mbits/sec.
- faulttolerance_
reservation_ floatmbit The amount of guaranteed bandwidth for the faultTolerance traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the faultTolerance traffic class for a custom share level.
- str
The allocation level for the faultTolerance traffic class. Can be one of high, low, normal, or custom.
- folder str
The folder to create the DVS in. Forces a new resource if changed.
- hbr_
maximum_ floatmbit The maximum allowed usage for the hbr traffic class, in Mbits/sec.
- hbr_
reservation_ floatmbit The amount of guaranteed bandwidth for the hbr traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the hbr traffic class for a custom share level.
- str
The allocation level for the hbr traffic class. Can be one of high, low, normal, or custom.
- hosts
List[Distributed
Virtual Switch Host] Use the
hostblock to declare a host specification. The options are:- ingress_
shaping_ floataverage_ bandwidth The average bandwidth in bits per second if ingress traffic shaping is enabled on the port.
- ingress_
shaping_ floatburst_ size The maximum burst size allowed in bytes if ingress traffic shaping is enabled on the port.
- ingress_
shaping_ boolenabled trueif the traffic shaper is enabled on the port for ingress traffic.- ingress_
shaping_ floatpeak_ bandwidth The peak bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- ipv4_
address str An IPv4 address to identify the switch. This is mostly useful when used with the Netflow arguments found below.
- iscsi_
maximum_ floatmbit The maximum allowed usage for the iSCSI traffic class, in Mbits/sec.
- iscsi_
reservation_ floatmbit The amount of guaranteed bandwidth for the iSCSI traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the iSCSI traffic class for a custom share level.
- str
The allocation level for the iSCSI traffic class. Can be one of high, low, normal, or custom.
- lacp_
api_ strversion The Link Aggregation Control Protocol group version to use with the switch. Possible values are
singleLagandmultipleLag.- lacp_
enabled bool Enables LACP for the ports that this policy applies to.
- lacp_
mode str The LACP mode. Can be one of
activeorpassive.- link_
discovery_ stroperation Whether to
advertiseorlistenfor link discovery traffic.- link_
discovery_ strprotocol The discovery protocol type. Valid types are
cdpandlldp.- management_
maximum_ floatmbit The maximum allowed usage for the management traffic class, in Mbits/sec.
- management_
reservation_ floatmbit The amount of guaranteed bandwidth for the management traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the management traffic class for a custom share level.
- str
The allocation level for the management traffic class. Can be one of high, low, normal, or custom.
- max_
mtu float The maximum transmission unit (MTU) for the virtual switch.
- multicast_
filtering_ strmode The multicast filtering mode to use with the switch. Can be one of
legacyFilteringorsnooping.- name str
The name of the distributed virtual switch.
- netflow_
active_ floatflow_ timeout The number of seconds after which active flows are forced to be exported to the collector. Allowed range is
60to3600. Default:60.- netflow_
collector_ strip_ address IP address for the Netflow collector, using IPv4 or IPv6. IPv6 is supported in vSphere Distributed Switch Version 6.0 or later. Must be set before Netflow can be enabled.
- netflow_
collector_ floatport Port for the Netflow collector. This must be set before Netflow can be enabled.
- netflow_
enabled bool Enables Netflow on all ports that this policy applies to.
- netflow_
idle_ floatflow_ timeout The number of seconds after which idle flows are forced to be exported to the collector. Allowed range is
10to600. Default:15.- netflow_
internal_ boolflows_ only Whether to limit analysis to traffic that has both source and destination served by the same host. Default:
false.- netflow_
observation_ floatdomain_ id The observation domain ID for the Netflow collector.
- netflow_
sampling_ floatrate The ratio of total number of packets to the number of packets analyzed. The default is
0, which indicates that the switch should analyze all packets. The maximum value is1000, which indicates an analysis rate of 0.001%.- network_
resource_ boolcontrol_ enabled Set to
trueto enable network I/O control. Default:false.- network_
resource_ strcontrol_ version The version of network I/O control to use. Can be one of
version2orversion3. Default:version2.- nfs_
maximum_ floatmbit The maximum allowed usage for the nfs traffic class, in Mbits/sec.
- nfs_
reservation_ floatmbit The amount of guaranteed bandwidth for the nfs traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the nfs traffic class for a custom share level.
- str
The allocation level for the nfs traffic class. Can be one of high, low, normal, or custom.
- notify_
switches bool If
true, the teaming policy will notify the broadcast network of an uplink failover, triggering cache updates.- port_
private_ floatsecondary_ vlan_ id Used to define a secondary VLAN ID when using private VLANs.
- standby_
uplinks List[str] A list of standby uplinks to be used in failover. These uplinks need to match the definitions in the
uplinksDVS argument. See here for more details.- List[str]
The IDs of any tags to attach to this resource.
- teaming_
policy str The uplink teaming policy. Can be one of
loadbalance_ip,loadbalance_srcmac,loadbalance_srcid, orfailover_explicit.- tx_
uplink bool Forward all traffic transmitted by ports for which this policy applies to its DVS uplinks.
- uplinks List[str]
A list of strings that uniquely identifies the names of the uplinks on the DVS across hosts. The number of items in this list controls the number of uplinks that exist on the DVS, in addition to the names. See here for an example on how to use this option.
- vdp_
maximum_ floatmbit The maximum allowed usage for the vdp traffic class, in Mbits/sec.
- vdp_
reservation_ floatmbit The amount of guaranteed bandwidth for the vdp traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the vdp traffic class for a custom share level.
- str
The allocation level for the vdp traffic class. Can be one of high, low, normal, or custom.
- version str
- The version of the DVS to create. The default is to create the DVS at the latest version supported by the version of vSphere being used. A DVS can be upgraded to another version, but cannot be downgraded.
- virtualmachine_
maximum_ floatmbit The maximum allowed usage for the virtualMachine traffic class, in Mbits/sec.
- virtualmachine_
reservation_ floatmbit The amount of guaranteed bandwidth for the virtualMachine traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the virtualMachine traffic class for a custom share level.
- str
The allocation level for the virtualMachine traffic class. Can be one of high, low, normal, or custom.
- vlan_
id float The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan_
ranges List[DistributedVirtual Switch Vlan Range] Used to denote VLAN trunking. Use the
min_vlanandmax_vlansub-arguments to define the tagged VLAN range. Multiplevlan_rangedefinitions are allowed, but they must not overlap. Example below:- vmotion_
maximum_ floatmbit The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
- vmotion_
reservation_ floatmbit The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the vmotion traffic class for a custom share level.
- str
The allocation level for the vmotion traffic class. Can be one of high, low, normal, or custom.
- vsan_
maximum_ floatmbit The maximum allowed usage for the vsan traffic class, in Mbits/sec.
- vsan_
reservation_ floatmbit The amount of guaranteed bandwidth for the vsan traffic class, in Mbits/sec.
- float
The amount of shares to allocate to the vsan traffic class for a custom share level.
- str
The allocation level for the vsan traffic class. Can be one of high, low, normal, or custom.
Supporting Types
DistributedVirtualSwitchHost
- Devices List<string>
The list of NIC devices to map to uplinks on the DVS, added in order they are specified.
- Host
System stringId The host system ID of the host to add to the DVS.
- Devices []string
The list of NIC devices to map to uplinks on the DVS, added in order they are specified.
- Host
System stringId The host system ID of the host to add to the DVS.
- devices string[]
The list of NIC devices to map to uplinks on the DVS, added in order they are specified.
- host
System stringId The host system ID of the host to add to the DVS.
- devices List[str]
The list of NIC devices to map to uplinks on the DVS, added in order they are specified.
- host_
system_ strid The host system ID of the host to add to the DVS.
DistributedVirtualSwitchVlanRange
Package Details
- Repository
- https://github.com/pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphereTerraform Provider.