2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 09:57:41 +00:00

129 Commits

Author SHA1 Message Date
Josh Soref
1a791d0ad1 spelling: artificially 2017-07-23 11:24:11 -04:00
Thomas Markwalder
cecf74b413 [5252] Addressed review comment
Unit test now verifies Lease::state_.
2017-04-24 12:55:40 -04:00
Marcin Siodelski
3d0c188503 [5252] Removed spurious whitespace. 2017-04-24 18:36:19 +02:00
Thomas Markwalder
a63885a00d [5252] Corrected lease state and assigned stat when reusing expired-reclaimed via V6 request
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
2017-04-24 11:07:57 -04:00
Thomas Markwalder
a7941a73f4 [5247] Addressed review comments 2017-04-21 15:28:35 -04:00
Thomas Markwalder
fe3766aedd [5247] Corrected issues with assigned-<lease/nas/pd> stats
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
2017-04-21 11:54:45 -04:00
Wlodek Wencel
9e3ca83d07 [v_1_2_0] copy right dates updated 2017-04-12 15:47:26 +02:00
Andrei Pavel
9082500187 Corrected typos 2016-12-14 16:57:44 +02:00
Marcin Siodelski
466d355fe3 [2280] Avoid overlapping pools in the alloc engine unit tests. 2016-10-12 10:25:29 +02:00
Marcin Siodelski
17e2afb7f3 [4320] Global set of allocated addresses in the ClientContext6. 2016-06-06 15:12:29 +02:00
Marcin Siodelski
9bd4c62dab [4320] Rename ResourceContainer to HintContainer. 2016-06-06 14:22:16 +02:00
Marcin Siodelski
1a3fe2cd3a [4320] Added container holding allocated addresses in IA context. 2016-06-06 12:11:23 +02:00
Marcin Siodelski
1d77f223f5 [4320] ClientContext6 now holds information about multiple IAs. 2016-06-04 08:20:07 +02:00
Marcin Siodelski
fe9dd86d20 [4236] Replaced license text in all files containing it. 2015-12-16 13:37:29 +01:00
Tomek Mrugalski
238d03172d [3985] Comments updated after review. 2015-10-14 16:52:36 +02:00
Tomek Mrugalski
39aff6266a [3985] Implemented IPv6 declined lease recovery. 2015-10-01 22:08:58 +02:00
Marcin Siodelski
15df99746b [3958] Allocation engine allows for overriding the # of allocation attempts. 2015-07-19 14:01:27 +02:00
Marcin Siodelski
3946e8ad94 [3958] Fixed invalid number of allocation attampts in the log message. 2015-07-19 12:03:07 +02:00
Tomek Mrugalski
ee25dc7dba [3958] Extra test for large (80 bits pool) configuration implemented. 2015-07-19 11:14:33 +02:00
Marcin Siodelski
22071c7155 [3958] Fixed the allocation from the large PD pool. 2015-07-19 10:06:07 +02:00
Marcin Siodelski
6c489c3e41 [3913] Allocation engine extends the lifetime of the lease for Request. 2015-06-26 12:29:25 +02:00
Shawn Routhier
7f5186e35e [3799] Updates per review comments
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
2015-06-19 11:08:22 -07:00
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
Shawn Routhier
5f8a84bd13 [3799] Add v6 subnet statistics
Using the v4 changes as a guide (3798) add statistics
for subnets for v6.  The four stats are total addresses
and addresses used for both NA and PD.
2015-06-17 01:50:41 -07:00
Marcin Siodelski
fddcdad9dd [3852] Added more traces to the Allocation Engine. 2015-06-15 12:43:11 +02:00
Marcin Siodelski
b043038e7c [3852] Added traces to the allocation engine. 2015-06-12 14:55:08 +02: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
16153c9e76 [3677] alloc_engine_unittest.cc split into serveral smaller files. 2015-02-09 19:16:48 +01:00