Examples of EthernetDriverType


Examples of com.abiquo.model.enumerator.EthernetDriverType

    private static VirtualHardwareSectionType configureCustomEthernetDriver(
        final VirtualHardwareSectionType vhsection, final TemplateDto disk)
        throws RequiredAttributeException
    {
        final EthernetDriverType ethDriverType = disk.getEthernetDriverType();
        if (ethDriverType != null)
        {
            CIMResourceAllocationSettingDataType ethDriver =
                CIMResourceAllocationSettingDataUtils.createResourceAllocationSettingData(
                    "ethernetDriver", "1", CIMResourceTypeEnum.Ethernet_Adapter, 0, null);
            ethDriver.setResourceSubType(CIMTypesUtils.createString(ethDriverType.name()));

            final RASDType rasdEthDriver =
                CIMResourceAllocationSettingDataUtils.createRASDTypeFromCIMRASD(ethDriver);
            OVFVirtualHadwareSectionUtils.addRASD(vhsection, rasdEthDriver);
        }
View Full Code Here

Examples of com.abiquo.model.enumerator.EthernetDriverType

                // dReq.setImageSize(diskDescType.get);
            }
            else if (CIMResourceTypeEnum.Ethernet_Adapter.getNumericResourceType() == resTnumeric)
            {
                String ethDriver = null;
                EthernetDriverType ethDriverType = null;
                try
                {
                    ethDriver = rasdType.getResourceSubType().getValue();
                    ethDriverType = EthernetDriverType.valueOf(ethDriver);
                }
                catch (Exception e)
                {
                    LOG.error("Invalid ethernet adapter type {}", ethDriver != null ? ethDriver
                        : "-ResourceSubType- not found");
                }

                if (dReq.getEthernetDriverType() != null && ethDriverType != null)
                {
                    LOG.warn("Overwrite ethernet adapter type form {} to {}", dReq
                        .getEthernetDriverType().name(), ethDriverType.name());
                }
                else if (ethDriverType != null)
                {
                    dReq.setEthernetDriverType(ethDriverType);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.