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);
}
Aggregations