Search in sources :

Example 11 with DVPortgroupConfigSpec

use of com.vmware.vim25.DVPortgroupConfigSpec in project cloudstack by apache.

the class HypervisorHostHelper method createDvPortGroupSpec.

public static DVPortgroupConfigSpec createDvPortGroupSpec(String dvPortGroupName, DVPortSetting portSetting, int numPorts, boolean autoExpandSupported) {
    DVPortgroupConfigSpec spec = new DVPortgroupConfigSpec();
    spec.setName(dvPortGroupName);
    spec.setDefaultPortConfig(portSetting);
    spec.setPortNameFormat("vnic<portIndex>");
    spec.setType("earlyBinding");
    spec.setNumPorts(numPorts);
    spec.setAutoExpand(autoExpandSupported);
    return spec;
}
Also used : DVPortgroupConfigSpec(com.vmware.vim25.DVPortgroupConfigSpec)

Aggregations

BoolPolicy (com.vmware.vim25.BoolPolicy)8 DVSTrafficShapingPolicy (com.vmware.vim25.DVSTrafficShapingPolicy)8 VMwareDVSPortSetting (com.vmware.vim25.VMwareDVSPortSetting)8 VmwareDistributedVirtualSwitchVlanIdSpec (com.vmware.vim25.VmwareDistributedVirtualSwitchVlanIdSpec)8 LongPolicy (com.vmware.vim25.LongPolicy)7 Test (org.junit.Test)7 DVPortgroupConfigSpec (com.vmware.vim25.DVPortgroupConfigSpec)3 ManagedObjectReference (com.vmware.vim25.ManagedObjectReference)2 CloudException (com.cloud.exception.CloudException)1 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)1 DVPortgroupConfigInfo (com.vmware.vim25.DVPortgroupConfigInfo)1 VmwareDistributedVirtualSwitchPvlanSpec (com.vmware.vim25.VmwareDistributedVirtualSwitchPvlanSpec)1 VmwareDistributedVirtualSwitchVlanSpec (com.vmware.vim25.VmwareDistributedVirtualSwitchVlanSpec)1 IOException (java.io.IOException)1 URISyntaxException (java.net.URISyntaxException)1 InvalidParameterException (java.security.InvalidParameterException)1 ArrayList (java.util.ArrayList)1 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)1 TransformerException (javax.xml.transform.TransformerException)1 SAXException (org.xml.sax.SAXException)1