CLOUDSTACK-1427: Failed to delete Guestnetwork which has LB with

Netscaler

There is no need for getIpDeployer to depend on the fact a NetScaler
device is allocated (network is implemented state) or not-allocated
(network is in shutdown state)
This commit is contained in:
Murali Reddy 2013-03-13 17:17:12 +05:30
parent b4bab5a152
commit 2feda05ecd
1 changed files with 2 additions and 5 deletions

View File

@ -638,14 +638,11 @@ StaticNatServiceProvider {
@Override
public IpDeployer getIpDeployer(Network network) {
ExternalLoadBalancerDeviceVO lbDevice = getExternalLoadBalancerForNetwork(network);
if (lbDevice == null) {
s_logger.error("Cannot find external load balanacer for network " + network.getName());
return null;
}
if (_networkMgr.isNetworkInlineMode(network)) {
return getIpDeployerForInlineMode(network);
}
return this;
}