CS-16060: Firewall service should be excluded from conserve mode checking

This commit is contained in:
Sheng Yang 2012-08-17 10:54:20 -07:00
parent a8efbcda58
commit 86d49e7aa0

View File

@ -880,6 +880,9 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
if (!offering.isConserveMode()) {
for (PublicIp ip : ipToServices.keySet()) {
Set<Service> services = ipToServices.get(ip);
if (services != null && services.contains(Service.Firewall)) {
services.remove(Service.Firewall);
}
if (services != null && services.size() > 1) {
throw new CloudRuntimeException("Ip " + ip.getAddress() + " is used by multiple services!");
}