src/lib/dhcpsrv/alloc_engine.cc
AllocEngine::updateLeaseData() - added logic to set lease state
to default and increment assigned stat if the lease is expired-reclaimed
src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
TEST_F(AllocEngine6Test, requestReuseDeclinedLease6Stats) - new test
to verify the behavior
doc/guide/dhcp4-srv.xml
doc/guide/dhcp6-srv.xml
Added entries for reclaimed-leases
src/lib/dhcpsrv/alloc_engine.cc
AllocEngine::reuseExpiredLease(Lease6Ptr&...) - increment
assigned-<nas/pds> for real allocations
AllocEngine::extendLease6() - increment assigned-<nas/pds>
for real allocations if the lease expired
AllocEngine::renewLease4(const Lease4Ptr&...)
- set lease state to STATE_DEFAULT for real allocations
- increment assigned-leases if lease is expired or reclaimed
for real allocations
AllocEngine::reuseExpiredLease4(Lease4Ptr&...)
- increment assigned-leases for real allocations
src/lib/dhcpsrv/cfg_subnets4.cc
CfgSubnets4::removeStatistics() - added "reclaimed-leases"
src/lib/dhcpsrv/cfg_subnets6.cc
CfgSubnets4::removeStatistics() - added "reclaimed-leases"
src/lib/dhcpsrv/lease_mgr.cc
LeaseMgr::recountLeaseStats4()
LeaseMgr::recountLeaseStats6()
- added handling of "reclaimed-leases"
- fixed name of "reclaimed-declined-addresses"
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
TEST_F(AllocEngine4Test, simpleRenew4) - new test to verify stats
on a normal renew, non-expired
Added EXPECT_TRUE around calls to testStatistics for invocation line numbers
Added stat checks to several tests
src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
Added EXPECT_TRUE around calls to testStatistics for invocation line numbers
Added stat checks to several tests
src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc
Added checks of assigned stats
src/lib/dhcpsrv/tests/alloc_engine_utils.cc
AllocEngine6Test::initSubnet() - removed artificial stat values
NakedAllocEngine::addHost() - new method to add a host to the
current configuration, rather than use staging/commit as the latter
Change the -NAs and -PDs strings to -nas and -pds to be in line with
the rest of the statistic names
Remove @todo from CfgSubnet6::updateStatistics and CfgSubnet6::removeStatistics
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/alloc_engine.cc
allocateLeases6()
- removed find_reservation parameter from allocateLeases6
- removed logic that called findReservation(), this eliminates
inadvertanly stomping an already populated host in the context.
Places burden of doing the reservation lookup always on the caller.
src/bin/dhcp6/dhcp6_srv.cc
removed obsolete boolean parameter from allocateLeases6 calls
src/lib/dhcpsrv/tests/alloc_engine_utils.h
src/lib/dhcpsrv/tests/alloc_engine_utils.cc
AllocEngine6Test::findReservation() - new method which calls
engine's findReservation() and fills in context hostname accordingly.
src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
added calls to AlloceEnginetTest::findReservation where needed