deleteNetwork: return false when fail to cleanup network resources (LB/PF/StaticNat rules)

This commit is contained in:
alena 2011-04-21 11:15:51 -07:00
parent 435c20c0cc
commit 3d33fd7f92
1 changed files with 4 additions and 1 deletions

View File

@ -2001,7 +2001,10 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
boolean success = true;
cleanupNetworkResources(networkId, callerAccount, context.getCaller().getId());
if (!cleanupNetworkResources(networkId, callerAccount, context.getCaller().getId())) {
s_logger.warn("Unable to delete network id=" + networkId + ": failed to cleanup network resources");
return false;
}
for (NetworkElement element : _networkElements) {
try {