Search in sources :

Example 11 with DVSSecurityPolicy

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

the class HypervisorHostHelperTest method testDVSSecurityPolicyLegacyDefault.

@Test
public void testDVSSecurityPolicyLegacyDefault() {
    DVSSecurityPolicy secPolicy = HypervisorHostHelper.createDVSSecurityPolicy(null);
    assertFalse(secPolicy.getAllowPromiscuous().isValue());
    assertTrue(secPolicy.getForgedTransmits().isValue());
    assertTrue(secPolicy.getMacChanges().isValue());
}
Also used : DVSSecurityPolicy(com.vmware.vim25.DVSSecurityPolicy) Test(org.junit.Test)

Aggregations

DVSSecurityPolicy (com.vmware.vim25.DVSSecurityPolicy)7 CloudException (com.cloud.exception.CloudException)4 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)4 ManagedObjectReference (com.vmware.vim25.ManagedObjectReference)4 VMwareDVSPortSetting (com.vmware.vim25.VMwareDVSPortSetting)4 IOException (java.io.IOException)4 URISyntaxException (java.net.URISyntaxException)4 InvalidParameterException (java.security.InvalidParameterException)4 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)4 TransformerException (javax.xml.transform.TransformerException)4 SAXException (org.xml.sax.SAXException)4 Test (org.junit.Test)3 VmwareContext (com.cloud.hypervisor.vmware.util.VmwareContext)2 BroadcastDomainType (com.cloud.network.Networks.BroadcastDomainType)2 Pair (com.cloud.utils.Pair)2 BoolPolicy (com.vmware.vim25.BoolPolicy)2 DVPortgroupConfigInfo (com.vmware.vim25.DVPortgroupConfigInfo)2 DVPortgroupConfigSpec (com.vmware.vim25.DVPortgroupConfigSpec)2 DVSTrafficShapingPolicy (com.vmware.vim25.DVSTrafficShapingPolicy)2 VMwareDVSPortgroupPolicy (com.vmware.vim25.VMwareDVSPortgroupPolicy)2