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

8 Commits

Author SHA1 Message Date
Shawn Routhier
f4963266a4 [3799] Add more tests
Update the documents a bit

Fix up handling reservations from outside the subnet

Add more tests
2015-06-17 20:55:15 -07:00
Marcin Siodelski
b043038e7c [3852] Added traces to the allocation engine. 2015-06-12 14:55:08 +02:00
Marcin Siodelski
e0bbec0e10 [3747] Use client identifier over MAC to get existing client's lease. 2015-05-11 17:14:29 +02:00
Thomas Markwalder
3e09b74567 [3689] Addressed primary review comments
doc/guide/dhcp6-srv.xml
    Updated "Reserving a hostname" section
    (also removed trailing spaces)

src/bin/dhcp6/dhcp6_srv.cc
   corrected test and commentary typo in assignIA_NA
   removed second parameter to renewLeases6() calls

src/bin/dhcp6/dhcp6_srv.h
    updated commentary for createContext()

src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.h
    AllocEngine::createLease6()
        removed find_host parameter and logic which calls
        findReservation and/or alters context hostname

src/lib/dhcpsrv/tests/alloc_engine_utils.cc
    AllocEngine6Test::renewTest() - added call to
    AllocEngine6Test::findReservation()

src/lib/dhcpsrv/tests/alloc_engine_utils.h
    fixed typo
2015-03-18 15:16:09 -04:00
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