mirror of https://github.com/apache/cloudstack.git
Bug-Id: CLOUDSTACK-7395: reverted 0560254c04 partially. Allow multiple networks with LB service
This commit is contained in:
parent
dc17e4ef39
commit
a520309190
|
|
@ -1309,9 +1309,7 @@ public class VpcManagerImpl extends ManagerBase implements VpcManager, VpcProvis
|
|||
continue;
|
||||
} else {
|
||||
NetworkOffering otherOff = _entityMgr.findById(NetworkOffering.class, network.getNetworkOfferingId());
|
||||
//throw only if networks have different offerings with public lb support
|
||||
if (_ntwkModel.areServicesSupportedInNetwork(network.getId(), Service.Lb) && otherOff.getPublicLb() &&
|
||||
guestNtwkOff.getId() != otherOff.getId()) {
|
||||
if (_ntwkModel.areServicesSupportedInNetwork(network.getId(), Service.Lb) && otherOff.getPublicLb()) {
|
||||
throw new InvalidParameterValueException("Public LB service is already supported " + "by network " + network + " in VPC " + vpc);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue