CLOUDSTACK-2045:[Multiple IPs Per Nic] This feature is not working well

in case of networks with external devices after GC

adding missing 'retrun false' for isNetworkReadyForGc for the networks
that use external network devices and has secondary IP's associated with
nics.
This commit is contained in:
Murali Reddy 2013-07-04 21:27:29 +05:30
parent a14a9c1926
commit 3cf07118a8
1 changed files with 1 additions and 0 deletions

View File

@ -2143,6 +2143,7 @@ public class NetworkModelImpl extends ManagerBase implements NetworkModel {
// network rules. So prevent network GC.
if (secondaryIps != null && !secondaryIps.isEmpty() &&
networkIsConfiguredForExternalNetworking(network.getDataCenterId(), networkId)) {
return false;
}
return true;