ControlledDhcpv4Srv::reclaimExpiredLeases(const size_t max_leases,
const uint16_t timeout,
const bool remove_lease,
- const uint16_t max_unwarned_cycles) {
- server_->alloc_engine_->reclaimExpiredLeases4(max_leases, timeout,
- remove_lease,
- max_unwarned_cycles);
+ try {
+ server_->alloc_engine_->reclaimExpiredLeases4(max_leases, timeout,
+ remove_lease,
+ max_unwarned_cycles);
+ } catch (const std::exception& ex) {
+ LOG_ERROR(dhcp4_logger, DHCP4_RECLAIM_EXPIRED_LEASES_FAIL)
+ .arg(ex.what());
+ }
// We're using the ONE_SHOT timer so there is a need to re-schedule it.
TimerMgr::instance()->setup(CfgExpiration::RECLAIM_EXPIRED_TIMER_NAME);
}
the client's IPv4 address to which the response will be sent. The third
argument contains the local interface name.
+% DHCP4_RECLAIM_EXPIRED_LEASES_FAIL failed to reclaim expired leases: %1
+This error message indicates that the reclaim expired leases operation failed,
+also providing the cause of failure.
+
% DHCP4_INIT_FAIL failed to initialize Kea server: %1
The server has failed to initialize. This may be because the configuration
was not successful, or it encountered any other critical error on startup.
const uint16_t timeout,
const bool remove_lease,
const uint16_t max_unwarned_cycles) {
- server_->alloc_engine_->reclaimExpiredLeases6(max_leases, timeout,
- remove_lease,
- max_unwarned_cycles);
+ try {
+ server_->alloc_engine_->reclaimExpiredLeases6(max_leases, timeout,
+ remove_lease,
+ max_unwarned_cycles);
+ } catch (const std::exception& ex) {
+ LOG_ERROR(dhcp6_logger, DHCP6_RECLAIM_EXPIRED_LEASES_FAIL)
+ .arg(ex.what());
+ }
// We're using the ONE_SHOT timer so there is a need to re-schedule it.
TimerMgr::instance()->setup(CfgExpiration::RECLAIM_EXPIRED_TIMER_NAME);
}
will be assigned. The argument holds the client and transaction
identification information.
+% DHCP6_RECLAIM_EXPIRED_LEASES_FAIL failed to reclaim expired leases: %1
+This error message indicates that the reclaim expired leases operation failed,
+also providing the cause of failure.
+
% DHCP6_INIT_FAIL failed to initialize Kea server: %1
The server has failed to establish communication with the rest of Kea,
failed to read JSON configuration file or encountered any other critical