src/bin/dhcp6/tests/dhcp6_test_utils.cc
Minor mods to emit configuration/parsing errors
src/bin/dhcp6/tests/host_unittest.cc
HostTest::sarrTest() - new function for testing a
SARR that should result in a lease
TEST_F(HostTest, globalReservationsNA)
TEST_F(HostTest, globalReservationsPD) - new tests
to verify global HRs
src/lib/dhcpsrv/alloc_engine.cc
New functions:
AllocEngine::ClientContext6::globalHost()
AllocEngine::ClientContext6::hasGlobalReservation()
AllocEngine::findGlobalReservation()
AllocEngine::allocateGlobalReservedLeases6()
Modified functions:
AllocEngine::ClientContext6::currentHost() - modified to take
into account a global host
AllocEngine::findReservation() - modified to use findGlobalReservation()
AllocEngine::allocateLeases6() - modified to use allocateGlobalReservation()
AllocEngine::removeNonmatchingReservedLeases6() - modified to
retain global reservations
AllocEngine::extendLease6() - modified to bypass range and client
mismatch disqualification for global reservations
src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
TEST_F(AllocEngine6Test, globalHostDynamicAddress)
TEST_F(AllocEngine6Test, globalHostReservedAddress)
TEST_F(AllocEngine6Test, globalHostReservedPrefix)
src/lib/dhcpsrv/tests/alloc_engine_utils.cc
testStatistics() - changed to test against SUBNET_ID_UNSUSED
src/lib/dhcpsrv/tests/alloc_engine_utils.h
testStatistics() - changed subnet_id default
src/lib/dhcpsrv/alloc_engine.cc
New functions:
AllocEngine::ClientContext6::globalHost()
AllocEngine::ClientContext6::hasGlobalReservation()
AllocEngine::findGlobalReservation()
AllocEngine::allocateGlobalReservedLeases6()
Modified functions:
AllocEngine::ClientContext6::currentHost() - modified to take
into account a global host
AllocEngine::findReservation() - modified to use findGlobalReservation()
AllocEngine::allocateLeases6() - modified to use allocateGlobalReservation()
AllocEngine::removeNonmatchingReservedLeases6() - modified to
retain global reservations
AllocEngine::extendLease6() - modified to bypass range and client
mismatch disqualification for global reservations
src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
TEST_F(AllocEngine6Test, globalHostDynamicAddress)
TEST_F(AllocEngine6Test, globalHostReservedAddress)
TEST_F(AllocEngine6Test, globalHostReservedPrefix)
src/lib/dhcpsrv/tests/alloc_engine_utils.cc
testStatistics() - changed to test against SUBNET_ID_UNSUSED
src/lib/dhcpsrv/tests/alloc_engine_utils.h
testStatistics() - changed subnet_id default