VPC: fixed logging

This commit is contained in:
Alena Prokharchyk 2012-07-11 13:47:15 -07:00
parent 37786a8325
commit 1a3a899d59
2 changed files with 2 additions and 4 deletions

View File

@ -18,7 +18,6 @@ import java.util.List;
import org.apache.log4j.Logger;
import com.cloud.api.ApiConstants;
import com.cloud.api.BaseCmd.CommandType;
import com.cloud.api.BaseListProjectAndAccountResourcesCmd;
import com.cloud.api.IdentityMapper;
import com.cloud.api.Implementation;

View File

@ -1008,7 +1008,6 @@ public class VpcVirtualNetworkApplianceManagerImpl extends VirtualNetworkApplian
" virtual router " + router + " is not in the right state", DataCenter.class, router.getDataCenterIdToDeployIn());
}
return true;
}
@Override
@ -1022,10 +1021,10 @@ public class VpcVirtualNetworkApplianceManagerImpl extends VirtualNetworkApplian
Network privateNetwork = _networkMgr.getNetwork(gateway.getNetworkId());
s_logger.debug("Unsetting source nat for " + router + "'s private gateway " + gateway + " as a part of delete private gateway");
s_logger.debug("Releasing private ip for gateway " + gateway + " from " + router);
boolean result = setupVpcPrivateNetwork(router, false, _networkMgr.getNicProfile(router, privateNetwork.getId()));
if (!result) {
s_logger.warn("Failed to delete private gateway " + gateway + " on router " + router);
s_logger.warn("Failed to release private ip for gateway " + gateway + " on router " + router);
return false;
}