Search in sources :

Example 21 with Site2SiteVpnConnectionVO

use of com.cloud.network.dao.Site2SiteVpnConnectionVO in project cloudstack by apache.

the class VpcVirtualNetworkApplianceManagerImpl method startSite2SiteVpn.

@Override
public boolean startSite2SiteVpn(DomainRouterVO router) throws ResourceUnavailableException {
    boolean result = true;
    List<Site2SiteVpnConnectionVO> conns = _s2sVpnMgr.getConnectionsForRouter(router);
    for (Site2SiteVpnConnectionVO conn : conns) {
        result = result && startSite2SiteVpn(conn, router);
    }
    return result;
}
Also used : Site2SiteVpnConnectionVO(com.cloud.network.dao.Site2SiteVpnConnectionVO)

Aggregations

Site2SiteVpnConnectionVO (com.cloud.network.dao.Site2SiteVpnConnectionVO)21 ActionEvent (com.cloud.event.ActionEvent)11 Account (com.cloud.user.Account)11 DB (com.cloud.utils.db.DB)8 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)8 InvalidParameterValueException (com.cloud.exception.InvalidParameterValueException)6 InvalidParameterValueException (com.cloud.utils.exception.InvalidParameterValueException)6 Site2SiteVpnServiceProvider (com.cloud.network.element.Site2SiteVpnServiceProvider)5 ArrayList (java.util.ArrayList)5 ResourceUnavailableException (com.cloud.exception.ResourceUnavailableException)4 Site2SiteCustomerGateway (com.cloud.network.Site2SiteCustomerGateway)4 Site2SiteCustomerGatewayVO (com.cloud.network.dao.Site2SiteCustomerGatewayVO)4 CheckS2SVpnConnectionsCommand (com.cloud.agent.api.CheckS2SVpnConnectionsCommand)3 HostVO (com.cloud.host.HostVO)3 Site2SiteVpnConnection (com.cloud.network.Site2SiteVpnConnection)3 DomainRouterVO (com.cloud.vm.DomainRouterVO)3 AgentControlAnswer (com.cloud.agent.api.AgentControlAnswer)2 Answer (com.cloud.agent.api.Answer)2 CheckRouterAnswer (com.cloud.agent.api.CheckRouterAnswer)2 CheckS2SVpnConnectionsAnswer (com.cloud.agent.api.CheckS2SVpnConnectionsAnswer)2