Skip to content

Commit a520309

Browse files
committed
Bug-Id: CLOUDSTACK-7395: reverted 0560254 partially. Allow multiple networks with LB service
1 parent dc17e4e commit a520309

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

server/src/com/cloud/network/vpc/VpcManagerImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,9 +1309,7 @@ public void validateNtwkOffForNtwkInVpc(Long networkId, long newNtwkOffId, Strin
13091309
continue;
13101310
} else {
13111311
NetworkOffering otherOff = _entityMgr.findById(NetworkOffering.class, network.getNetworkOfferingId());
1312-
//throw only if networks have different offerings with public lb support
1313-
if (_ntwkModel.areServicesSupportedInNetwork(network.getId(), Service.Lb) && otherOff.getPublicLb() &&
1314-
guestNtwkOff.getId() != otherOff.getId()) {
1312+
if (_ntwkModel.areServicesSupportedInNetwork(network.getId(), Service.Lb) && otherOff.getPublicLb()) {
13151313
throw new InvalidParameterValueException("Public LB service is already supported " + "by network " + network + " in VPC " + vpc);
13161314
}
13171315
}

0 commit comments

Comments
 (0)