return (Lease6Ptr());
}
- /// @todo: Add support for DROP status
+ /// DROP status does not make sense here:
+ /// In general as the lease cannot be dropped the DROP action
+ /// has no object so SKIP is the right "cancel" status and
+ /// DROP should not be a synonym as it introduces ambiguity.
// Let's use whatever callout returned. Hopefully it is the same lease
// we handed to it.
.arg(ctx.query_->getName());
}
- /// @todo: Add support for DROP status
+ /// DROP status does not make sense here.
}
if (!skip) {
skipped = callout_handle->getStatus() == CalloutHandle::NEXT_STEP_SKIP;
}
- /// @todo: Maybe add support for DROP status?
+ /// DROP status does not make sense here.
/// Not sure if we need to support every possible status everywhere.
if (!skipped) {
skipped = callout_handle->getStatus() == CalloutHandle::NEXT_STEP_SKIP;
}
- /// @todo: Maybe add support for DROP status?
+ /// DROP status does not make sense here.
/// Not sure if we need to support every possible status everywhere.
if (!skipped) {
time_t now = time(NULL);
- // @todo: remove this kludge after ticket #2590 is implemented
+ // @todo: remove this kludge?
std::vector<uint8_t> local_copy;
if (ctx.clientid_ && ctx.subnet_->getMatchClientId()) {
local_copy = ctx.clientid_->getDuid();
// Let's keep the old data. This is essential if we are using memfile
// (the lease returned points directly to the lease4 object in the database)
// We'll need it if we want to skip update (i.e. roll back renewal)
- /// @todo: remove this once #3083 is implemented
+ /// @todo: remove this?
Lease4 old_values = *lease;
ctx.old_lease_.reset(new Lease4(old_values));
DHCPSRV_HOOK_LEASE4_RENEW_SKIP);
}
- /// @todo: Add support for DROP status
+ /// DROP status does not make sense here.
}
if (!ctx.fake_allocation_ && !skip) {
}
if (skip) {
// Rollback changes (really useful only for memfile)
- /// @todo: remove this once #3083 is implemented
+ /// @todo: remove this?
*lease = old_values;
}
return (Lease4Ptr());
}
- /// @todo: add support for DROP
+ /// DROP status does not make sense here.
// Let's use whatever callout returned. Hopefully it is the same lease
// we handed to it.