2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 12:37:55 +00:00

129 Commits

Author SHA1 Message Date
Francis Dupont
0d0ca1d54b [#1418] Finished rebase, did CB 2021-01-11 16:05:46 +01:00
Francis Dupont
615465ece6 [#1418] Changed remaining_ for reusable_ 2021-01-11 16:05:46 +01:00
Francis Dupont
65b7546e32 [#1418] Updated v6 tests and doc 2021-01-11 16:05:46 +01:00
Francis Dupont
c2b76072a1 [#1418] Checkpoint: todo v6 server UT and doc 2021-01-11 16:05:46 +01:00
Francis Dupont
d1bc0c13ad [#1418] Checkpoint: did v6 core code 2021-01-11 16:05:46 +01:00
Francis Dupont
1644513e8f [#1418] Checkpoint: finished v4 part, v6 and doc to do 2021-01-11 16:05:46 +01:00
Razvan Becheriu
280dedbba2 [#1375] added CB connection recovery unittests 2020-12-09 19:12:46 +02:00
Razvan Becheriu
b8356add98 [#1405] addressed comments 2020-11-18 15:55:24 +02:00
Razvan Becheriu
d26a72f560 [#1405] merged second pass 2020-11-18 15:55:23 +02:00
Razvan Becheriu
8d05ba02b2 [#1405] merged first pass 2020-11-18 15:55:23 +02:00
Razvan Becheriu
ae8d9ba106 [#1405] added more unittests 2020-11-18 15:55:23 +02:00
Razvan Becheriu
63c1bd6bbf [#1434] renamed members and functions 2020-10-22 17:47:14 +03:00
Razvan Becheriu
49b073f12d [#1434] addressed comments
- replaced all occurences to old_cltt and old_valid_lft in unittests
- renamed syncInternalTimestamp to syncExistingLifetime and changed order
of parameters
- renamed updateInternalTimestamp to updateExistingLifetime
- updated doxygen
- added extra check for all occurences of deleteLease (either call
EXPECT or ASSERT), and only use cast to void if explicitly specified
- updated ChangeLog
- updated old_cltt and old_valid_lft on fromElementCommon and added
unittests
- throw exception with different message on memfile with persitence
disabled for easier debugging
2020-10-22 17:46:43 +03:00
Razvan Becheriu
0598154899 [#1434] fixed unittests 2020-10-22 17:45:55 +03:00
Thomas Markwalder
8d1c66ada6 Revert "[#1409] Correct DNS handling when reusing expired leases"
These changes overlook the fact that if a lease has expired, then
it's DNS entries have also expired and may or may not still be
in DNS. In any event, they need to be made anew.
2020-09-09 20:15:01 +00:00
Thomas Markwalder
d6b1297831 [#1409] Correct DNS handling when reusing expired leases
src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::createNameChangeRequests() - added logic to queue
    CHG_REMOVES for changed leases when new lease has no FQDN

src/lib/dhcpsrv/alloc_engine.cc
    AllocEngine::allocateUnreservedLeases6() - return the old lease
    as a changed lease, when reusing an expired lease

    AllocEngine::reclaimExpiredLease() - moved queue CHG_REMOVE to
    only occur when the DB is flagged for change.

    AllocEngine::reclaimLeaseInDatabase() - removed logic to
    clear lease FQDN data

src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
    TEST_F(AllocEngine6Test, requestReuseExpiredLease6) - verifies
    changed_leases instead of old_leases
2020-09-09 20:15:01 +00:00
Francis Dupont
1d31239aa9 [#816] Addressed new comments 2020-04-23 23:24:53 +02:00
Francis Dupont
8ad94924f5 [#816] Added global cumulative assigned stats 2020-04-23 23:23:18 +02:00
Francis Dupont
3f43d49e1c [#816] Added per subnet cumulative assigned stats 2020-04-23 23:23:18 +02:00
Thomas Markwalder
4d3cb9ab14 [#1010] Modified AllocateEngine and parsers to store extended v6 lease info
src/lib/dhcpsrv/alloc_engine.*
    AllocEngine::reuseExpiredLease()
    AllocEngine::createLease6()
    AllocEngine::extendLease6() - added call to AllocEngine::updateLase6ExtendedInfo()

    AllocEngine::updateLease4ExtendedInfo() - create Elements directly

    AllocEngine::updateLease6ExtendedInfo() - new method

src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
    TEST_F(AllocEngine6ExtendedInfoTest, updateExtendedInfo6)
    TEST_F(AllocEngine6ExtendedInfoTest, storeExtendedInfoEnabled6)
    TEST_F(AllocEngine6ExtendedInfoTest, storeExtendedInfoDisabled6)
    TEST_F(AllocEngine6ExtendedInfoTest, reuseExpiredLease6)
    - new tests

src/lib/dhcpsrv/parsers/dhcp_parsers.cc
src/lib/dhcpsrv/parsers/shared_network_parser.cc
src/lib/dhcpsrv/parsers/base_network_parser.*
    Renamed BaseNetworkParser::parseCommonTimer() to parseCommon() and
    added handling of store-extended-info.

src/lib/dhcpsrv/parsers/simple_parser6.cc
    Added store-extended-info

src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc
src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
src/lib/dhcpsrv/tests/network_unittest.cc
src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
    updated tests
2020-04-02 21:08:09 +02:00
Michal Nowikowski
78233068df [#1098] adjusted code for release
- update copyright dates
- prepare messages files
- added release entry in ChangeLog file
2020-01-27 19:50:37 +01:00
Razvan Becheriu
01eba32f6a [1040] separated delete functions 2020-01-10 17:41:35 +02:00
Thomas Markwalder
211786337f [#754,!558] Update v6 lease data for dynamic leases with HRs
src/lib/dhcpsrv/alloc_engine.cc
    AllocEngine::allocateLeases6(ClientContext6& ctx) - add call to
    updateLeaseData() to case 3.

src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
    TEST_F(AllocEngine6Test, hostDynamicAddress)
    TEST_F(AllocEngine6Test, globalHostDynamicAddress) - revamped to
    verify assignment and update for REQUESTs
2019-10-18 08:49:36 -04:00
Thomas Markwalder
007e866a79 [#665,!460] Addressed review comments
alloc_engine6_unittest.cc
    Removed extraneous spaces.
2019-08-14 10:57:56 +02:00
Thomas Markwalder
c548d9330e [#750,!440] Addressed review comments
src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
    removed extra spaces
2019-08-07 09:34:04 -04:00
Thomas Markwalder
5ea0daf471 [#750,!440] Added unit tests to allocation engine
TEST_F(AllocEngine6Test, globalHostDynamicAddress) - added second
    SARR cyle

    TEST_F(AllocEngine6Test, hostDynamicAddress) - new test for local
    host reservation with dynamic leases
2019-08-07 09:32:32 -04:00
Francis Dupont
a8b91c6d88 [295-min-max-lease-time-configuration-options] Fixed rebase errors 2019-06-22 10:05:24 -04:00
Francis Dupont
5c3080f182 [295-min-max-lease-time-configuration-options] Added alloc/renew DHCPv6 tests 2019-06-22 10:05:23 -04:00
Francis Dupont
80985ac8a7 [295-min-max-lease-time-configuration-options] checkpoint 2019-06-22 10:05:23 -04:00
Francis Dupont
7088f78b02 [567-remove-lease-t1_-and-t2_-members] Removed t1/t2 from leases 2019-06-19 02:43:03 -04:00
Francis Dupont
deed9e6f1d [474-optionally-disable-collection-host-lookups] Addressed comments 2019-03-20 08:20:36 -04:00
Francis Dupont
0208373f19 [474-optionally-disable-collection-host-lookups] Added a host manager flag to disable getAll() in alloc engine 2019-03-20 08:20:36 -04:00
Thomas Markwalder
2a90f95de0 [#13,!6] allocation engine modifications to support v6 global host reservations
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
2018-08-17 14:32:45 -04:00
Marcin Siodelski
e8ed8fe0fd [5638] Added commenary to simpleAlloc tests.
As a result of review.
2018-06-05 09:52:19 +02:00
Marcin Siodelski
28641c3be2 [5638] Reset callout handle status prior to lease6_select. 2018-06-04 14:45:34 +02:00
Francis Dupont
0260a6284e [master] Merging trac5374 (new classification) - conflicts resolved, regen needed 2018-04-11 16:42:23 +02:00
Francis Dupont
b7ff0b949e [5374] Checkpoint: need regen 2018-04-01 14:44:13 +02:00
Marcin Siodelski
ad313e8694 [5437] Select last used subnet for new allocations in DHCPv6. 2018-02-27 19:52:10 +01:00
Francis Dupont
5c5c3c5272 [5425a] Rebased and known client removal: first phase done 2018-01-19 00:54:40 +01:00
Francis Dupont
43410fdf07 [5425] Checkpoint: still a few new tests to add 2017-11-20 20:59:17 +01:00
Francis Dupont
9663c46dc3 [5425] Checkpoint: alloc done, new tests todo 2017-11-20 15:46:58 +01:00
Francis Dupont
7a5eeed8ad [5425] Added final? new tests 2017-11-05 11:58:06 +01:00
Francis Dupont
3c48a2ebb2 [5425] Checkpoint: added not alloc and service tests 2017-11-05 11:12:27 +01:00
Francis Dupont
90a8c58d1a [5425] Checkpoint: code one, tests todo 2017-11-04 10:12:17 +01:00
Tomek Mrugalski
e80567854b [5307] Minor tweaks in alloc_engine, couple tests added. 2017-09-22 18:38:46 +02:00
Marcin Siodelski
85b08a552f [5307] Updated allocation engine to facilitate shared networks for v6. 2017-09-21 10:59:20 +02:00
Josh Soref
647d11c78b spelling: relevant 2017-07-23 16:03:24 -04:00
Josh Soref
e9754e715d spelling: original 2017-07-23 15:17:59 -04:00
Josh Soref
645c41eca9 spelling: doesn't 2017-07-23 12:16:30 -04:00
Josh Soref
be2f520154 spelling: because 2017-07-23 11:41:43 -04:00