continue;
}
+ bool in_subnet = subnet->getReservationsInSubnet();
+ bool out_of_pool = subnet->getReservationsOutOfPool();
+
/// @todo: We support only one hint for now
Lease6Ptr lease =
LeaseMgrFactory::instance().getLease6(ctx.currentIA().type_, hint);
// it has been reserved for us we would have already allocated a lease.
ConstHostCollection hosts;
- bool in_subnet = subnet->getReservationsInSubnet();
- bool out_of_pool = subnet->getReservationsOutOfPool();
// The out-of-pool flag indicates that no client should be assigned reservations
// from within the dynamic pool, and for that reason we only look at reservations that
// are outside the pools, hence the inPool check.
// If the lease is expired, we may likely reuse it, but...
ConstHostCollection hosts;
- bool in_subnet = subnet->getReservationsInSubnet();
- bool out_of_pool = subnet->getReservationsOutOfPool();
// The out-of-pool flag indicates that no client should be assigned reservations
// from within the dynamic pool, and for that reason we only look at reservations that
// are outside the pools, hence the inPool check.
A debug message issued when the server is attempting to update IPv6
lease from the Cassandra database for the specified address.
+% DHCPSRV_DEPRECATED_RESERVATION_MODE deprecated reservation-mode parameter; use reservations-global, reservations-in-subnet and reservations-out-of-pool instead.
+A warning message indicating that reservation-mode parameter is deprecated.
+
% DHCPSRV_DHCP4O6_RECEIVED_BAD_PACKET received bad DHCPv4o6 packet: %1
A bad DHCPv4o6 packet was received.
// Move from reservation mode to new reservations flags.
ElementPtr mutable_params;
mutable_params = boost::const_pointer_cast<Element>(params);
- BaseNetworkParser::moveReservationMode(mutable_params);
+ if (BaseNetworkParser::moveReservationMode(mutable_params)) {
+ LOG_WARN(dhcpsrv_logger, DHCPSRV_DEPRECATED_RESERVATION_MODE);
+ }
// Parse parameters common to all Network derivations.
NetworkPtr network = boost::dynamic_pointer_cast<Network>(subnet4);
// Move from reservation mode to new reservations flags.
ElementPtr mutable_params;
mutable_params = boost::const_pointer_cast<Element>(params);
- BaseNetworkParser::moveReservationMode(mutable_params);
+ if (BaseNetworkParser::moveReservationMode(mutable_params)) {
+ LOG_WARN(dhcpsrv_logger, DHCPSRV_DEPRECATED_RESERVATION_MODE);
+ }
// Parse parameters common to all Network derivations.
NetworkPtr network = boost::dynamic_pointer_cast<Network>(subnet_);