mirror of https://github.com/apache/cloudstack.git
More logging on nic release
This commit is contained in:
parent
3c58197de2
commit
9bebe245ca
|
|
@ -167,9 +167,15 @@ public class ControlNetworkGuru extends PodBasedNetworkGuru implements NetworkGu
|
|||
DataCenterVO dcVo = _dcDao.findById(dcId);
|
||||
if(dcVo.getNetworkType() != NetworkType.Basic) {
|
||||
super.release(nic, vm, reservationId);
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("Released nic: " + nic);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
nic.deallocate();
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("Released nic: " + nic);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -177,6 +183,9 @@ public class ControlNetworkGuru extends PodBasedNetworkGuru implements NetworkGu
|
|||
_dcDao.releaseLinkLocalIpAddress(nic.getId(), reservationId);
|
||||
|
||||
nic.deallocate();
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("Released nic: " + nic);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,6 +145,10 @@ public class PodBasedNetworkGuru extends AdapterBase implements NetworkGuru {
|
|||
|
||||
nic.deallocate();
|
||||
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("Released nic: " + nic);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -196,6 +196,10 @@ public class PublicNetworkGuru extends AdapterBase implements NetworkGuru {
|
|||
txn.commit();
|
||||
}
|
||||
nic.deallocate();
|
||||
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("Deallocated nic: " + nic);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue