Francis Dupont
5981f34911
[509-improve-disabling-client-id] [509-improve-disabling-client-id-] Improved client-id lookup by code
2019-05-10 13:11:45 +02: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
91f8ca94f3
[#13,!6] Addressed review comments
...
Mostly corrections additions to commentary.
2018-08-27 13:23:17 -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
Thomas Markwalder
e46618e63a
[5705] AllocEngine4 now matches clients to global HRs
...
src/bin/dhcp4/tests/Makefile.am
src/bin/dhcp4/tests/host_unittest.cc - new file with global HR tests
src/lib/dhcpsrv/alloc_engine.*
findGlobalReservation() - new function that searches for global HR
findReservation() - calls findGlobalReservation() if mode is global
hasAddressReservation()
ClientContext4::currentHost()
- modified to recognize global HRs
src/lib/dhcpsrv/network.h
Added new mode, Netork::HR_GLOBAL
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
TEST_F(AllocEngine4Test, globalReservationReservedAddressDiscover)
TEST_F(AllocEngine4Test, globalReservationReservedAddressRequest)
TEST_F(AllocEngine4Test, globalReservationDynamicDiscover)
TEST_F(AllocEngine4Test, globalReservationDynamicRequest) - new tests
2018-08-14 09:43:04 -04:00
Marcin Siodelski
e5d7bc8b72
[5664] Fix callout status propagation in Alloc Engine.
2018-06-29 17:51:51 +02:00
Marcin Siodelski
c7d7be0801
[5664] Test that callout handle is reset after the callouts.
2018-06-29 17:51:41 +02:00
Marcin Siodelski
28641c3be2
[5638] Reset callout handle status prior to lease6_select.
2018-06-04 14:45:34 +02:00
Marcin Siodelski
34c5137873
[5638] Fixed invalid callouts status for the v4 case.
2018-06-04 13:38:25 +02:00
Marcin Siodelski
db448f8014
[5458] Removed deleted_leases from ClientContext6.
...
Also, declined lease is treated as new lease when calling
leases6_committed hook.
2018-04-27 15:02:25 +02:00
Marcin Siodelski
050f91156f
[5458] Removed ClientContext6::committed_ flag.
2018-04-27 13:35:24 +02:00
Francis Dupont
89d8d0bce9
[5458a] Checkpoint: code and main tests done, todo prefix and all v6 corner cases
2018-04-25 06:14:22 +02:00
Francis Dupont
04fb2e4289
[5458a] Code done, tests to do
2018-04-20 01:09:31 +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
af43f07b0e
[master] Merge branch 'trac5457'
...
# Conflicts:
# src/bin/dhcp4/tests/callout_library_1.cc
# src/bin/dhcp4/tests/callout_library_2.cc
2018-03-06 19:19:19 +01:00
Tomek Mrugalski
e7d1bd6af4
[5437] Changes after review
...
- some comments added
- unit-tests renamed
- using C++11 syntax to simplify things.
2018-03-02 16:06:13 +01:00
Marcin Siodelski
53713e352d
[5437] Optimize lease searches for a DHCPv6 client.
2018-02-28 11:24:51 +01:00
Marcin Siodelski
ad313e8694
[5437] Select last used subnet for new allocations in DHCPv6.
2018-02-27 19:52:10 +01:00
Marcin Siodelski
a3114dfcc8
[5437] HR_DISABLED option handling moved to subnet level.
2018-02-27 18:20:17 +01:00
Marcin Siodelski
c0cdf5fe31
[5437] Support for HR_OUT_OF_POOL mode in DHCPv4 added.
2018-02-27 14:38:42 +01:00
Marcin Siodelski
c0b7b9b710
[5437] Optimized client lease search in the allocation engine.
2018-02-27 09:21:39 +01:00
Marcin Siodelski
d64cfdccac
[5437] Updated copyright dates after recent fixes.
2018-02-26 13:34:37 +01:00
Marcin Siodelski
64a92508d1
[5437] Optimized preferred subnet selection within shared network.
2018-02-26 13:30:52 +01:00
Marcin Siodelski
5fa70d00bd
[5437] Do not fetch reservations for subnets for which HR_DISABLED is set.
2018-02-26 13:28:51 +01:00
Marcin Siodelski
e5a1768f9a
[5437] Optimized the number of queries for host reservations.
2018-02-26 13:28:16 +01:00
Francis Dupont
7a78fcb7b8
[5457] untabified
2018-01-29 21:14:41 +01:00
Francis Dupont
3d6bb5b1d4
[master] Merged trac5425a (class in pools)
2018-01-29 18:37:53 +01:00
Marcin Siodelski
8afc4716ad
[5457] Created leases4_committed hook point.
2018-01-22 10:47:11 +01:00
Francis Dupont
1ed4f63637
[master] Merged trac5443 (NEXT_STEP_DROP)
2018-01-20 21:18:39 +01:00
Francis Dupont
84d4aad047
[5443] Removed some @todod explaining the DROP status at the first occurrence
2018-01-20 20:51:53 +01:00
Francis Dupont
5c5c3c5272
[5425a] Rebased and known client removal: first phase done
2018-01-19 00:54:40 +01:00
Francis Dupont
9663c46dc3
[5425] Checkpoint: alloc done, new tests todo
2017-11-20 15:46:58 +01:00
Marcin Siodelski
01d6d68e06
[5402] Minor fix in allocation engine checking if lease exists.
2017-11-07 11:32:59 +01:00
Francis Dupont
29c00734a0
[5425] Fixed renew after pool class change
2017-11-05 22:53:49 +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
Marcin Siodelski
e3a6262f47
[5393] Fixed conflict resolution in allocation engine.
...
This now works for any identifier, instead of just MAC address.
2017-10-20 12:10:31 +02:00
Marcin Siodelski
db7182c1c3
[5388] Corrected bug in allocation engine.
...
The bug was manifesting itself in inability to find an existing lease
within shared network when client performed DORA without a hint.
2017-10-13 13:22:08 +02:00
Marcin Siodelski
07ce52ee4c
[master] Merge branch 'trac5364'
...
# Conflicts:
# src/bin/dhcp6/tests/config_parser_unittest.cc
2017-10-11 10:04:16 +02:00
Marcin Siodelski
63d1838ceb
[5364] Extended v4 shared networks tests with checks for statistics.
2017-10-02 21:11:01 +02:00
Thomas Markwalder
044bb373c6
[5359] Moved v4 DNS remove logic from alloc engine to the server
...
Moved logic to test FQDN for differences from AllocEngine::renewLease4()
to Dhcpv4Srv::createNameChangeRequests(), so it can occur after we
determine the FQDN for the "new" lease
2017-09-29 11:44:32 -04:00
Marcin Siodelski
d095cb3c4b
[5364] Shared network unit tests verify that lease is in the database.
2017-09-28 19:50:02 +02:00
Marcin Siodelski
bc88d6be4d
[5364] Unit tests for shared networks now verify leases on the server.
2017-09-28 15:41:25 +02:00
Marcin Siodelski
30ee1d625f
[5307] Addressed review comments.
...
- Increase total_attempts one by one.
- Add debug message to indicate skipping reservations in subnet
which classes do not match.
2017-09-25 12:44:45 +02:00
Tomek Mrugalski
e80567854b
[5307] Minor tweaks in alloc_engine, couple tests added.
2017-09-22 18:38:46 +02:00
Marcin Siodelski
dd3e3a9101
[5307] Assign reserved hostnames for shared networks.
2017-09-21 10:59:21 +02:00
Marcin Siodelski
70678b349a
[5307] Created basic unit tests for shared networks in DHCPv6.
2017-09-21 10:59:21 +02:00
Marcin Siodelski
85b08a552f
[5307] Updated allocation engine to facilitate shared networks for v6.
2017-09-21 10:59:20 +02:00