mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	VPC: createLB rule - removed duplicated check for ip services when createLB rule
Conflicts: server/src/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
This commit is contained in:
		
							parent
							
								
									31f9d718fb
								
							
						
					
					
						commit
						0dfe603d48
					
				@ -740,14 +740,14 @@ 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());
 | 
			
		||||
                        performedIpAssoc = true;
 | 
			
		||||
                    } else {
 | 
			
		||||
                    } else {                    
 | 
			
		||||
                        _networkMgr.checkIpForService(ipAddressVO, Service.Lb);
 | 
			
		||||
                    }
 | 
			
		||||
                }   
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user