# Data Object - HostVirtualNicConnection(vim.host.VirtualNicConnection)

Property of
  HostDnsConfigSpec, HostIpRouteConfigSpec, HostVirtualNicManagerNicTypeSelection
Extends
  DynamicData
See also
  DistributedVirtualSwitchPortConnection, HostVirtualNicOpaqueNetworkSpec
Since
  vSphere API 4.0

## Data Object Description

DataObject which provides a level of indirection when identifying VirtualNics during configuration. This dataObject lets users specify a VirtualNic in terms of the portgroup/Dv Port the Virtual NIC is connected to. This is useful in cases where VirtualNic will be created as part of a configuration operation and the created VirtualNic is referred to in some other part of configuration. e.g: for configuring VMotion

Properties

Name | Type | Description
--- | --- | ---
dvPort* | DistributedVirtualSwitchPortConnection | Identifier for the DistributedVirtualPort. If the virtual nic is to be connected to a DVS, #dvPort will be set instead of #portgroup
opNetwork* | HostVirtualNicOpaqueNetworkSpec | Identifier for the opaqueNetworkSpec virtual nic connected to. If the virtual nic is to be connected to a logicSwitch, #opNetwork will be set instead of #portgroup and #dvPort Since vSphere API 6.7
portgroup* | xsd:string | Name of the portgroup to which the virtual nic is connected to. If this parameter is set, use a virtual nic connected to a legacy portgroup.
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="HostVirtualNicConnection"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="portgroup" type="xsd:string" minOccurs="0"/> <element name="dvPort" type="vsan:DistributedVirtualSwitchPortConnection" minOccurs="0"/> <element name="opNetwork" type="vsan:HostVirtualNicOpaqueNetworkSpec" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>