[Kea-users] Need help assigning subnets by class with host reservations
Thomas Markwalder
tmark at isc.org
Tue Nov 15 12:51:24 UTC 2016
On 11/15/16 7:41 AM, Thomas Markwalder wrote:
Sorry, it would need to be at least this:
diff --git a/src/lib/dhcpsrv/alloc_engine.cc
b/src/lib/dhcpsrv/alloc_engine.cc
index bc37eeb..0a5e446 100644
--- a/src/lib/dhcpsrv/alloc_engine.cc
+++ b/src/lib/dhcpsrv/alloc_engine.cc
@@ -2841,6 +2841,11 @@
AllocEngine::allocateUnreservedLease4(ClientContext4& ctx) {
new_lease = allocateOrReuseLease4(candidate, ctx);
if (new_lease) {
return (new_lease);
+ } else {
+ if (ctx.callout_handle_ &&
+ ctx.callout_handle_->getStatus() ==
CalloutHandle::NEXT_STEP_SKIP) {
+ break;
+ }
}
}
}
More information about the Kea-users
mailing list