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

474 Commits

Author SHA1 Message Date
Francis Dupont
615465ece6 [#1418] Changed remaining_ for reusable_ 2021-01-11 16:05:46 +01:00
Francis Dupont
b27118b5f8 [#1418] Addressed first comments 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
Francis Dupont
64dfcb3503 [#1418] Checkpoint: small improvements 2021-01-11 16:05:46 +01:00
Francis Dupont
e78fbe1a4f [#1418] Checkpoint: preparation code done 2021-01-11 16:05:46 +01:00
Francis Dupont
37859ff442 [#1418] Removed conditionalExtendLifetime 2021-01-11 16:05:46 +01:00
Razvan Becheriu
9d4ebc82a1 [#1458] addressed comments 2021-01-04 17:14:40 +00:00
Razvan Becheriu
96a6f06a99 [#1458] trivial optimization 2021-01-04 17:14:40 +00:00
Andrei Pavel
e96c6a2a40
[#1602] remove duplicate includes 2020-12-30 15:55:05 +02:00
Razvan Becheriu
3440253310 [#1550] fixed typo 2020-11-19 17:48:28 +02:00
Razvan Becheriu
3667541051 [#1550] addressed comments 2020-11-19 17:32:07 +02:00
Razvan Becheriu
78208d968f [#1550] addressed comments 2020-11-19 16:12:34 +02:00
Razvan Becheriu
bbb2de80ed [#1550] addressed comments 2020-11-19 15:29:38 +02:00
Razvan Becheriu
6ce3a31071 [#1550] addressed comments 2020-11-19 15:27:22 +02:00
Razvan Becheriu
374e82c5ba [#1550] addressed comments 2020-11-19 15:16:13 +02:00
Razvan Becheriu
ea9e70eb65 [#1550] added documentation 2020-11-19 14:25:22 +02:00
Razvan Becheriu
7b6f0c3b01 [#1550] added documentation 2020-11-19 14:23:28 +02:00
Razvan Becheriu
375bbe34a5 [#1550] added documentation 2020-11-19 13:10:21 +02:00
Razvan Becheriu
efefb9faa8 [#1550] optimize number of database queries when searching for reservations 2020-11-19 11:44:49 +02:00
Razvan Becheriu
b195823537 [#1550] check if reservation is in pool before assigning it to the client 2020-11-18 16:20:56 +02:00
Razvan Becheriu
88316abc53 [#1405] addressed comments 2020-11-18 16:20:56 +02:00
Razvan Becheriu
3d389f6749 [#1405] addressed comments 2020-11-18 15:55:24 +02:00
Razvan Becheriu
e83be562ce [#1405] addressed comments 2020-11-18 15:55:24 +02:00
Razvan Becheriu
e204018611 [#1405] addressed comments 2020-11-18 15:55:24 +02:00
Razvan Becheriu
14d7f1c7c9 [#1405] reverted changes 2020-11-18 15:55:24 +02:00
Razvan Becheriu
506051bc6c [#1405] addressed comments 2020-11-18 15:55:24 +02:00
Razvan Becheriu
1460c7ec66 [#1405] addressed comments 2020-11-18 15:55:24 +02:00
Razvan Becheriu
4cc5d808a7 [#1405] addressed comments 2020-11-18 15:55:24 +02:00
Razvan Becheriu
2cc17075ff [#1405] checking out of pool reservations should be done only if in subnet is true 2020-11-18 15:55:24 +02:00
Razvan Becheriu
f06b3ffde9 [#1405] ignore out of pool if in subnet is disabled 2020-11-18 15:55:24 +02:00
Razvan Becheriu
8ee04fac55 [#1405] regenerated and fixed unittests 2020-11-18 15:55:23 +02:00
Razvan Becheriu
828494819b [#1405] added more log warnings 2020-11-18 15:55:23 +02:00
Razvan Becheriu
d26a72f560 [#1405] merged second 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
ab564dd25b [#1405] clean up code 2020-11-18 15:55:23 +02:00
Razvan Becheriu
ce79c85507 [#1405] do not allocate in pool reservations when out of pool is specified 2020-11-18 15:55:23 +02:00
Razvan Becheriu
035dc8c5ff [#1405] separate flags from configuration modes 2020-11-18 15:55:23 +02:00
Razvan Becheriu
73d56545f9 [#1405] fixed reservation access on empty hosts 2020-11-18 15:55:23 +02:00
Razvan Becheriu
ca4ae11a79 [#1405] out-of-pool is also in-subnet 2020-11-18 15:55:23 +02:00
Razvan Becheriu
ab2f01f8c0 [#1405] addressed comments 2020-11-18 15:55:23 +02:00
Razvan Becheriu
3252fb43b8 [#1405] updated unittests 2020-11-18 15:55:22 +02:00
Razvan Becheriu
234296cbce [#1405] updated unittests 2020-11-18 15:55:22 +02:00
Razvan Becheriu
06d2ec5edd [#1405] added parser for the reservation-modes map 2020-11-18 15:55:22 +02:00
Marcin Siodelski
adcc94edd8 [#1428] Addressed review comments
- Note that IP reservations are unique with a subnet in several places
- Put back const in createManagers function
- Aligned log arguments.
- Added missing commentary in v6 config fetch routine.
2020-10-09 13:02:02 +02:00
Marcin Siodelski
5d570cf077 [#1428] Use ip-reservations-unique in alloc engine 2020-10-08 15:44:39 +02:00
Tomek Mrugalski
6016588deb [#1389] Addressed review comment: getSubnetId()
- replaced getSubnet() with getSubnetId()
2020-09-25 07:36:03 +00:00
Thomas Markwalder
02ef7e59f7 [#1389] V4 uses DDNS parameters from correct subnet
Initial commit. Need to add unit tests.

src/bin/dhcp4/dhcp4_srv.cc
    Dhcpv4Srv::processClientName - added logic to populate the
    context with hostname and dns flags. Formerly this was in assignLeases.

    Dhcpv4Srv::assignLease - now calls processClientName() before allocating
    the lease, and after IF the selected subnet changes. Removed logic to
    update name from reservation.

    Dhcpv4Srv::processDiscover
    Dhcpv4Srv::processRequest -  no longer calls processClientName

    Dhcpv4Srv::processHostnameOption - now it always uses hostname supplied
    by a reservation.  Eliminates need for post-allocation update.

    Dhcpv4Srv::postAllocateNameUpdate - contains logic extracted from assignLeases

src/lib/dhcpsrv/alloc_engine.cc
    AllocEngine::ClientContext6::getDdnsParams
    AllocEngine::ClientContext4::getDdnsParams -
    recreates DdnsParameter instance if it is stale.
2020-09-25 07:36:03 +00:00
Thomas Markwalder
cd39b7dd1c [#1409] Clear DNS fields when reusing expired v4 leases
Clearing DNS fields after we do the remove ensures that we'll
do an add if the client is needs new DNS entries , while avoiding
duplicate DNS removes.

src/bin/dhcp4/tests/dhcp4_client.cc
    Dhcp4Client::includeHostname() - reset hostname if given an empty parameter

src/bin/dhcp4/tests/fqdn_unittest.cc
    TEST_F(NameDhcpv4SrvTest, processReuseExpired) - new test

src/lib/dhcpsrv/alloc_engine.cc
    AllocEngine::reclaimExpiredLease(Lease4Ptr...) - always clear the DNS fields after
    the call to queue and CHG_REMOVE

    AllocEngine::allocateOrReuseLease4() - clear DNS fields in the old lease
    so we don't trigger redundant removes
2020-09-09 20:15:01 +00:00