2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 20:47:48 +00:00

4 Commits

Author SHA1 Message Date
Thomas Markwalder
5493c96924 [3689] Removed call to findReservation from AllocateEngine::allocateLeases6()
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
2015-03-17 17:19:32 -04:00
Tomek Mrugalski
75030024b9 [3565] Unit-tests written for host reservations by MAC 2015-02-12 20:07:10 +01:00
Tomek Mrugalski
ca5d9cc9a5 [3677] Whitespace cleanup, one method moved .h -> .cc 2015-02-09 19:24:00 +01:00
Tomek Mrugalski
16153c9e76 [3677] alloc_engine_unittest.cc split into serveral smaller files. 2015-02-09 19:16:48 +01:00