Skip to content

Commit ed7bd00

Browse files
Sheng YangDaanHoogland
authored andcommitted
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.
1 parent 02bd3d0 commit ed7bd00

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎server/src/com/cloud/network/vpn/Site2SiteVpnManagerImpl.java‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,9 @@ public Site2SiteVpnConnection createVpnConnection(CreateVpnConnectionCmd cmd) th
264264
}
265265

266266
if (_vpnConnectionDao.findByVpnGatewayIdAndCustomerGatewayId(vpnGatewayId, customerGatewayId) != null) {
267-
throw new InvalidParameterValueException("The vpn connection with customer gateway id " + customerGatewayId + " or vpn gateway id " + vpnGatewayId +
267+
throw new InvalidParameterValueException("The vpn connection with customer gateway id " + customerGatewayId + " and vpn gateway id " + vpnGatewayId +
268268
" already existed!");
269269
}
270-
if (_vpnConnectionDao.findByCustomerGatewayId(customerGatewayId) != null) {
271-
throw new InvalidParameterValueException("The vpn connection with specified customer gateway id " + customerGatewayId + " already exists!");
272-
}
273-
274270
String[] cidrList = customerGateway.getGuestCidrList().split(",");
275271

276272
// Remote sub nets cannot overlap VPC's sub net

0 commit comments

Comments
 (0)