Skip to content

Commit 2feda05

Browse files
author
Murali Reddy
committed
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)
1 parent b4bab5a commit 2feda05

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

plugins/network-elements/netscaler/src/com/cloud/network/element/NetscalerElement.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -638,14 +638,11 @@ public boolean applyIps(Network network, List<? extends PublicIpAddress> ipAddre
638638

639639
@Override
640640
public IpDeployer getIpDeployer(Network network) {
641-
ExternalLoadBalancerDeviceVO lbDevice = getExternalLoadBalancerForNetwork(network);
642-
if (lbDevice == null) {
643-
s_logger.error("Cannot find external load balanacer for network " + network.getName());
644-
return null;
645-
}
641+
646642
if (_networkMgr.isNetworkInlineMode(network)) {
647643
return getIpDeployerForInlineMode(network);
648644
}
645+
649646
return this;
650647
}
651648

0 commit comments

Comments
 (0)