# Data Object - HostVirtualSwitchSpec(vim.host.VirtualSwitch.Specification)

Property of
  HostVirtualSwitch, HostVirtualSwitchConfig
Parameter to
  AddVirtualSwitch, UpdateVirtualSwitch
Extends
  DynamicData
See also
  HostNetworkPolicy, HostVirtualSwitchBridge
Since
  2.0

## Data Object Description

This data object type describes the VirtualSwitch specification representing the properties on a VirtualSwitch that can be configured once the object exists.

Properties

Name | Type | Description
--- | --- | ---
bridge* | HostVirtualSwitchBridge | The bridge specification describes how physical network adapters can be bridged to a virtual switch.
mtu* | xsd:int | The maximum transmission unit (MTU) of the virtual switch in bytes. Since VI API 2.5
numPorts | xsd:int | The number of ports that this virtual switch is configured to use. Changing this setting does not take effect until the next reboot. The maximum value is 1024, although other constraints, such as memory limits, may establish a lower effective limit.
policy* | HostNetworkPolicy | The virtual switch policy specification. This has a lower precedence than PortGroup. If the policy property is not set and you are creating a virtual switch, then a default policy property setting is used. If the policy property is not set and you are updating a virtual switch, then the policy will be unchanged.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="HostVirtualSwitchSpec"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="numPorts" type="xsd:int"/> <element name="bridge" type="vsan:HostVirtualSwitchBridge" minOccurs="0"/> <element name="policy" type="vsan:HostNetworkPolicy" minOccurs="0"/> <element name="mtu" type="xsd:int" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>