Package com.cloud.agent.api

Examples of com.cloud.agent.api.DeleteVnsPortCommand


    @Test
    public void testDeletePortException() throws ConfigurationException, BigSwitchVnsApiException {
        _resource.configure("BigSwitchVnsResource", _parameters);

        doThrow(new BigSwitchVnsApiException()).when(_bigswitchVnsApi).deletePort((String) any(), (String) any(), (String) any());
        DeleteVnsPortAnswer dntkpa = (DeleteVnsPortAnswer) _resource.executeRequest(new DeleteVnsPortCommand("networkId",
                "portid", "tenantid"));
        assertFalse(dntkpa.getResult());
    }
View Full Code Here


            return false;
        }
        BigSwitchVnsDeviceVO bigswitchVnsDevice = devices.get(0);
        HostVO bigswitchVnsHost = _hostDao.findById(bigswitchVnsDevice.getHostId());

        DeleteVnsPortCommand cmd = new DeleteVnsPortCommand(
                network.getBroadcastUri().getSchemeSpecificPart(),
                vm.getUuid(),
                tenantId);
        DeleteVnsPortAnswer answer = (DeleteVnsPortAnswer) _agentMgr
                .easySend(bigswitchVnsHost.getId(), cmd);
View Full Code Here

    @Test
    public void testDeletePortException() throws ConfigurationException, BigSwitchVnsApiException {
        _resource.configure("BigSwitchVnsResource", _parameters);

        doThrow(new BigSwitchVnsApiException()).when(_bigswitchVnsApi).deletePort((String)any(), (String)any(), (String)any());
        DeleteVnsPortAnswer dntkpa = (DeleteVnsPortAnswer)_resource.executeRequest(new DeleteVnsPortCommand("networkId", "portid", "tenantid"));
        assertFalse(dntkpa.getResult());
    }
View Full Code Here

            return false;
        }
        BigSwitchVnsDeviceVO bigswitchVnsDevice = devices.get(0);
        HostVO bigswitchVnsHost = _hostDao.findById(bigswitchVnsDevice.getHostId());

        DeleteVnsPortCommand cmd = new DeleteVnsPortCommand(BroadcastDomainType.getValue(network.getBroadcastUri()), vm.getUuid(), tenantId);
        DeleteVnsPortAnswer answer = (DeleteVnsPortAnswer)_agentMgr.easySend(bigswitchVnsHost.getId(), cmd);

        if (answer == null || !answer.getResult()) {
            s_logger.error("DeletePortCommand failed");
            return false;
View Full Code Here

            return false;
        }
        BigSwitchVnsDeviceVO bigswitchVnsDevice = devices.get(0);
        HostVO bigswitchVnsHost = _hostDao.findById(bigswitchVnsDevice.getHostId());

        DeleteVnsPortCommand cmd = new DeleteVnsPortCommand(
                BroadcastDomainType.getValue(network.getBroadcastUri()),
                vm.getUuid(),
                tenantId);
        DeleteVnsPortAnswer answer = (DeleteVnsPortAnswer)_agentMgr
                .easySend(bigswitchVnsHost.getId(), cmd);
View Full Code Here

            return false;
        }
        BigSwitchVnsDeviceVO bigswitchVnsDevice = devices.get(0);
        HostVO bigswitchVnsHost = _hostDao.findById(bigswitchVnsDevice.getHostId());

        DeleteVnsPortCommand cmd = new DeleteVnsPortCommand(
                network.getBroadcastUri().getSchemeSpecificPart(),
                vm.getUuid(),
                tenantId);
        DeleteVnsPortAnswer answer = (DeleteVnsPortAnswer) _agentMgr
                .easySend(bigswitchVnsHost.getId(), cmd);
View Full Code Here

    @Test
    public void testDeletePortException() throws ConfigurationException, BigSwitchVnsApiException {
        _resource.configure("BigSwitchVnsResource", _parameters);

        doThrow(new BigSwitchVnsApiException()).when(_bigswitchVnsApi).deletePort((String) any(), (String) any(), (String) any());
        DeleteVnsPortAnswer dntkpa = (DeleteVnsPortAnswer) _resource.executeRequest(new DeleteVnsPortCommand("networkId",
                "portid", "tenantid"));
        assertFalse(dntkpa.getResult());
    }
View Full Code Here

TOP

Related Classes of com.cloud.agent.api.DeleteVnsPortCommand

Copyright © 2018 www.massapicom. 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.