mirror of
https://github.com/apache/cloudstack
synced 2026-08-29 16:44:23 +00:00
CLOUDSTACK-5501: Allow one vpn customer gateway with multiple connections
This restriction was purposely avoid confusion of VPN setup, but later found too
strictly and cause troubles for deployment. Removed after testing one customer
gateway with multiple connections.
(cherry picked from commit 0a62eb8380)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Conflicts:
server/src/com/cloud/network/vpn/Site2SiteVpnManagerImpl.java
This commit is contained in:
parent
6cd4b289b2
commit
e9c5a03fb0
@ -250,14 +250,9 @@ public class Site2SiteVpnManagerImpl extends ManagerBase implements Site2SiteVpn
|
||||
}
|
||||
|
||||
if (_vpnConnectionDao.findByVpnGatewayIdAndCustomerGatewayId(vpnGatewayId, customerGatewayId) != null) {
|
||||
throw new InvalidParameterValueException("The vpn connection with customer gateway id " + customerGatewayId + " or vpn gateway id "
|
||||
+ vpnGatewayId + " already existed!");
|
||||
throw new InvalidParameterValueException("The vpn connection with customer gateway id " + customerGatewayId + " and vpn gateway id " + vpnGatewayId +
|
||||
" already existed!");
|
||||
}
|
||||
if (_vpnConnectionDao.findByCustomerGatewayId(customerGatewayId) != null) {
|
||||
throw new InvalidParameterValueException("The vpn connection with specified customer gateway id " + customerGatewayId +
|
||||
" already exists!");
|
||||
}
|
||||
|
||||
String[] cidrList = customerGateway.getGuestCidrList().split(",");
|
||||
|
||||
// Remote sub nets cannot overlap VPC's sub net
|
||||
|
||||
Loading…
Reference in New Issue
Block a user