Github user rajesh-battala commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1859#discussion_r93747990
  
    --- Diff: 
server/src/com/cloud/network/ExternalLoadBalancerDeviceManagerImpl.java ---
    @@ -1157,14 +1222,28 @@ protected IpDeployer 
getIpDeployerForInlineMode(Network network) {
                 return null;
             }
     
    -        ExternalLoadBalancerDeviceVO lbDeviceVO = 
getExternalLoadBalancerForNetwork(network);
    +        HostVO externalLoadBalancer = null;
    +
    +        if(isNccServiceProvider(network)) {
    +            externalLoadBalancer  = 
getNetScalerControlCenterForNetwork(network);
    +        } else {
    +            ExternalLoadBalancerDeviceVO lbDeviceVO = 
getExternalLoadBalancerForNetwork(network);
    +            if (lbDeviceVO == null) {
    +                s_logger.warn("There is no external load balancer device 
assigned to this network either network is not implement are already shutdown 
so just returning");
    +                return null;
    +            } else {
    +                externalLoadBalancer = 
_hostDao.findById(lbDeviceVO.getHostId());
    +            }
    +        }
    +
    +/*        ExternalLoadBalancerDeviceVO lbDeviceVO = 
getExternalLoadBalancerForNetwork(network);
    --- End diff --
    
    Remove unused code


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to