HostVirtualNicConnection

HostVirtualNicConnection
HostVirtualNicConnection

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

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "portgroup": "string",
    "dvPort": {
        "_typeName": "string",
        "switchUuid": "string",
        "portgroupKey": "string",
        "portKey": "string",
        "connectionCookie": 0
    },
    "opNetwork": {
        "_typeName": "string",
        "opaqueNetworkId": "string",
        "opaqueNetworkType": "string"
    }
}
string
portgroup
Optional

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.

dvPort
Optional

Identifier for the DistributedVirtualPort.

If the virtual nic is to be connected to a DVS, #dvPort will be set instead of #portgroup

opNetwork
Optional

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