Tomek Mrugalski
9aadfa902d
[master] Merge branch 'trac3985' (automated declined v6 lease recovery)
2015-10-14 16:56:47 +02:00
Marcin Siodelski
fdc6d42b7a
[3975] Support for unwarned-reclaim-cycles parameter added.
2015-10-12 18:05:24 +02:00
Marcin Siodelski
4517ba7bfa
[3975] Scheduling lease expiration timers in the DHCP servers.
...
The timers are scheduled in the ControlledDhcpvXSrv instances. The
unit tests are located in the kea_controller_unittest.cc.
2015-10-12 13:59:05 +02:00
Tomek Mrugalski
0849048d17
[3499] bool skip flag replaced by enum status.
2015-10-06 13:34:27 +02:00
Francis Dupont
29125cc147
[3985] spelling
2015-10-03 22:17:31 +02:00
Tomek Mrugalski
39aff6266a
[3985] Implemented IPv6 declined lease recovery.
2015-10-01 22:08:58 +02:00
Tomek Mrugalski
32a8ec68e0
[master] Merge branch 'trac3984' (v4 declined lease recovery)
...
Conflicts:
src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc
2015-10-01 14:23:35 +02:00
Tomek Mrugalski
d6d0a54375
[3984] Changes after review:
...
- Added comments in AllocEngine
- decline message clarified
- counters are now unsigned
- several asserts added in unit-tests
- missing doxygen entry added
2015-10-01 14:04:07 +02:00
Marcin Siodelski
92f52e2c03
[3972] Addressed review comments - minor nits.
2015-09-30 10:57:43 +02:00
Marcin Siodelski
e50fd18032
[3972] Lease reclamation routine executes the callouts.
2015-09-29 13:47:13 +02:00
Tomek Mrugalski
664ac1eaba
[3984] Declined IPv4 leases reclaimation implemented
2015-09-22 20:36:47 +02:00
Marcin Siodelski
e588aa4a9f
[3973] Addressed review comments.
2015-09-16 14:02:31 +02:00
Marcin Siodelski
2ead25cbea
[3973] Added todos for the lease reclamation routines.
2015-09-11 09:43:46 +02:00
Marcin Siodelski
216d4107cb
[3973] Update statistics when the lease is reclaimed.
2015-09-11 09:42:23 +02:00
Marcin Siodelski
0ea15c0d02
[3973] Use client identifier to generate DHCID for lease reclamation.
2015-09-11 09:42:16 +02:00
Marcin Siodelski
1f2dea1bb0
[3973] Implemented tests for DHCPv4 lease reclamation routine.
2015-09-11 09:42:06 +02:00
Marcin Siodelski
d9d36098a7
[3973] Added logging to the lease expiration routine.
...
Also added better exception handling.
2015-09-11 09:41:54 +02:00
Marcin Siodelski
c8837f49d0
[3973] Implemented first version of the lease reclamation routine.
2015-09-11 09:41:26 +02:00
Marcin Siodelski
dd5b954535
[master] Merge branch 'trac3965'
2015-09-03 11:42:57 +02:00
Marcin Siodelski
c06ab97a4e
[master] Merge branch 'trac3947'
2015-09-02 18:20:47 +02:00
Marcin Siodelski
dfd5058a79
[3965] Removed unused fields from the Lease structures.
2015-08-28 16:33:01 +02:00
Marcin Siodelski
ddb442f78b
[3947] Removed the new-leases-on-renew config parameter.
...
This change removes ability to disable allocation new leases new
Renew/Rebind, specified in RFC7550. The behavior specified in this
RFC is the only supported behavior.
2015-07-30 14:49:21 +02:00
Marcin Siodelski
623693cd96
[3947] Added missing unit tests for the NoBinding cases in Renew/Rebind.
2015-07-28 12:28:31 +02:00
Marcin Siodelski
3946e8ad94
[3958] Fixed invalid number of allocation attampts in the log message.
2015-07-19 12:03:07 +02:00
Marcin Siodelski
22071c7155
[3958] Fixed the allocation from the large PD pool.
2015-07-19 10:06:07 +02:00
Marcin Siodelski
65b25d4e1c
[3913] Addressed review comments.
...
Moved the function from the anon namespace to the AllocEngine class.
2015-06-26 18:33:29 +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
Tomek Mrugalski
bab2030f56
[master] Merge branch 'trac3798' (per subnet stats in DHCPv4)
...
Conflicts:
src/bin/dhcp4/tests/dhcp4_test_utils.cc
2015-06-16 13:40:32 +02:00
Marcin Siodelski
923928774f
[master] Merge branch 'trac3852'
2015-06-16 12:33:41 +02:00
Marcin Siodelski
4d00407a10
[3852] Addressed review comments.
2015-06-16 10:54:21 +02:00
Marcin Siodelski
fddcdad9dd
[3852] Added more traces to the Allocation Engine.
2015-06-15 12:43:11 +02:00
Tomek Mrugalski
0e3de871a8
[3798] Changes after review:
...
- packet names updated in User's Guide
- StatsMgr now uses int64_t, not uint64_t
- StatsMgr::generateName() added
- DISCOVER => DHCPDISCOVER
2015-06-15 12:25:12 +02:00
Francis Dupont
bce3f8a4f7
[master] Merged trac3855 (minor bug in dhcpsrv)
2015-06-13 14:19:28 +02:00
Marcin Siodelski
b043038e7c
[3852] Added traces to the allocation engine.
2015-06-12 14:55:08 +02:00
Marcin Siodelski
eae671905b
[3852] Created new logger for allocation engine.
...
Also, moved alloc-engine specific messages to separate files.
2015-06-11 18:46:46 +02:00
Tomek Mrugalski
4608140690
[3798] assigned-addresses stat modifications in AllocEngine
2015-05-27 13:38:02 +02:00
Francis Dupont
7f7120f48e
[3855] #3855 patch
2015-05-12 04:43:41 +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
Francis Dupont
ea6e9d166f
[master] remove '#include <config.h' from include files ( #3782 )
2015-04-18 01:39:43 +02:00
Thomas Markwalder
c13c824d99
[master] Merge branch 'trac3689'
2015-03-20 07:06:52 -04:00
Marcin Siodelski
a194abb189
[3768] Updated the comment for the internal alloc function.
2015-03-19 22:26:59 +01:00
Marcin Siodelski
568a6beed1
[3768] Extended commentary in the allocation engine to cover recent changes.
2015-03-19 19:43:22 +01:00
Marcin Siodelski
a4bc5674e9
[3768] Alloc engine allocats leases to clients with repeating client ids.
2015-03-19 17:40:28 +01: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
Thomas Markwalder
ac6651e0ee
[3689] Changed AllocEngine::allocateLeases6 to not reset context hostname
...
src/lib/dhcpsrv/alloc_engine.cc
AllocEngine::allocateLeases6() - now only sets context host name
if findReservation() is called. This was stomping on the value
already in the context.
2015-03-17 14:11:57 -04:00
Marcin Siodelski
17cf6d4702
[3688] Host reservations are not initialized by the allocation engine.
...
The caller is now responsible for obtaining the host reservation prior to
calling the allocation engine functions.
2015-03-11 12:29:48 +01:00