private static VirtualNetworkAdapterType TryGetNetworkAdapterType()

in src/main/java/com/vmware/vim25/mox/VirtualMachineDeviceManager.java [649:658]


    private static VirtualNetworkAdapterType TryGetNetworkAdapterType(GuestOsDescriptor guestOsInfo) {
        String ethernetCardType = guestOsInfo.getRecommendedEthernetCard();

        if ((ethernetCardType == null || ethernetCardType.isEmpty()) &&
            (guestOsInfo.getSupportedEthernetCard() != null) &&
            ((guestOsInfo.getSupportedEthernetCard().length > 0))) {
            ethernetCardType = guestOsInfo.getSupportedEthernetCard()[0];
        }
        return GetNetworkAdapterTypeByApiType(ethernetCardType);
    }