mirror of https://github.com/apache/cloudstack.git
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:
parent
b4bab5a152
commit
2feda05ecd
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue