nicBacking.port.switchUuid = dvPortgroupInfo.switchUuid;
result = createNicSpec(adapterType, macAddress, wakeOnLan, startConnected, nicBacking);
}
else
{
NetworkSummary netSummary = getHostNetworkSummaryByName(
networkName, configTarget.network);
VirtualEthernetCardNetworkBackingInfo nicBacking = new VirtualEthernetCardNetworkBackingInfo();
nicBacking.network = netSummary.network;
nicBacking.deviceName = netSummary.name;
result = createNicSpec(adapterType, macAddress, wakeOnLan, startConnected, nicBacking);