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 da9552b7f3
commit a8a23c4364

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;