Search in sources :

Example 1 with Site2SiteVpn

use of com.cloud.agent.resource.virtualnetwork.model.Site2SiteVpn in project cloudstack by apache.

the class Site2SiteVpnConfigItem method generateConfig.

@Override
public List<ConfigItem> generateConfig(final NetworkElementCommand cmd) {
    final Site2SiteVpnCfgCommand command = (Site2SiteVpnCfgCommand) cmd;
    final Site2SiteVpn site2siteVpn = new Site2SiteVpn(command.getLocalPublicIp(), command.getLocalGuestCidr(), command.getLocalPublicGateway(), command.getPeerGatewayIp(), command.getPeerGuestCidrList(), command.getEspPolicy(), command.getIkePolicy(), command.getIpsecPsk(), command.getIkeLifetime(), command.getEspLifetime(), command.isCreate(), command.getDpd(), command.isPassive(), command.getEncap());
    return generateConfigItems(site2siteVpn);
}
Also used : Site2SiteVpnCfgCommand(com.cloud.agent.api.routing.Site2SiteVpnCfgCommand) Site2SiteVpn(com.cloud.agent.resource.virtualnetwork.model.Site2SiteVpn)

Aggregations

Site2SiteVpnCfgCommand (com.cloud.agent.api.routing.Site2SiteVpnCfgCommand)1 Site2SiteVpn (com.cloud.agent.resource.virtualnetwork.model.Site2SiteVpn)1