mirror of https://github.com/apache/cloudstack.git
VPC: createLB rule - removed duplicated check for ip services when createLB rule
This commit is contained in:
parent
3383c79452
commit
1ac1bcb2f6
|
|
@ -738,15 +738,16 @@ public class LoadBalancingRulesManagerImpl<Type> implements LoadBalancingRulesMa
|
|||
try {
|
||||
if (ipAddressVO != null) {
|
||||
if (ipAddressVO.getAssociatedWithNetworkId() == null) {
|
||||
//set networkId just for verification purposes
|
||||
//set networkId just for verification purposes
|
||||
ipAddressVO.setAssociatedWithNetworkId(lb.getNetworkId());
|
||||
_networkMgr.checkIpForService(ipAddressVO, Service.Lb);
|
||||
|
||||
s_logger.debug("The ip is not associated with the network id="+ lb.getNetworkId() + " so assigning");
|
||||
ipAddressVO = _networkMgr.associateIPToGuestNetwork(ipAddrId, lb.getNetworkId());
|
||||
boolean perfomedIpAssoc = true;
|
||||
performedIpAssoc = true;
|
||||
} else {
|
||||
_networkMgr.checkIpForService(ipAddressVO, Service.Lb);
|
||||
}
|
||||
_networkMgr.checkIpForService(ipAddressVO, Service.Lb);
|
||||
}
|
||||
|
||||
if (lb.getSourceIpAddressId() == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue