Marcin Siodelski
df5f884a62
[3688] Prevent allocation engine from allocating 0 IPv4 address.
2015-03-11 10:13:28 +01:00
Marcin Siodelski
6364a03c06
[3688] DHCPv4 server assignes reserved hostname to the clients.
2015-03-10 16:52:21 +01:00
Marcin Siodelski
ac39054345
[3688] Implemented AllocEngine::findReservation for DHCPv4.
2015-03-09 12:28:28 +01:00
Tomek Mrugalski
7996ff0df5
[3689] hostname from reservation is now applied, if available
2015-03-06 20:35:16 +01:00
Tomek Mrugalski
15925ccf96
[3689] findReservation() implemented
2015-03-06 19:05:34 +01:00
Marcin Siodelski
95b09ff53b
[master] Merge branch 'trac3694'
...
Conflicts:
src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.h
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
2015-03-06 11:20:09 +01:00
Marcin Siodelski
f86883c8ea
[3694] Swap in-pool checks with the host reservation checks in alloc engine.
2015-03-05 21:14:49 +01:00
Marcin Siodelski
e60a1b9e84
[3694] Addressed review comments.
2015-03-05 20:43:02 +01:00
Shawn Routhier
0133383f45
[3694] Fix up some typos
2015-03-04 21:39:12 -08:00
Tomek Mrugalski
9c8ff76f41
[3709] createLease4() now uses ClientContext4
2015-03-03 12:55:50 +01:00
Tomek Mrugalski
7394da5b3d
[3709] allocateLease4 now uses ClientContext4
2015-03-02 19:37:57 +01:00
Marcin Siodelski
2ae3435279
[3694] Added warning message when there is an address conflict.
2015-02-26 14:43:59 +01:00
Marcin Siodelski
0a5c01b32a
[3694] Removed unused ClientContext4 member.
2015-02-26 14:17:26 +01:00
Marcin Siodelski
707b485d91
[3694] Improved documentation of the allocation engine.
...
Also, made a couple of little fixes to the DHCPv4 allocation functions.
2015-02-25 14:50:40 +01:00
Marcin Siodelski
c05631f397
[3694] Fixed the unit test for the conflict resolution in DHCPv4.
2015-02-24 18:53:32 +01:00
Marcin Siodelski
26a639e025
[3694] Cleanup in the failing DHCPv4 tests after update to AllocEngine.
2015-02-24 17:25:56 +01:00
Marcin Siodelski
323d538546
[3694] Grouping DHCPv4 functions in the allocation engine.
2015-02-24 12:38:30 +01:00
Marcin Siodelski
09cc33b915
[3694] Restructured lease4 allocation routines.
2015-02-24 11:44:51 +01:00
Marcin Siodelski
cb5533a1bf
[master] Merge branch 'trac3711'
...
Conflicts:
src/lib/asiolink/io_address.h
src/lib/asiolink/tests/io_address_unittest.cc
2015-02-18 13:08:43 +01:00
Tomek Mrugalski
fd015b6ef1
[3711] Changes after review:
...
- IOAddress::increase() simplified
- getLeasesCount renamed to getPoolCapacity
- removed several intermediate variables
2015-02-18 12:29:00 +01:00
Tomek Mrugalski
02c32188f4
[3711] Changes after first part of the review:
...
- increaseAddress renamed to increase
- check that addrsInRange throw when max < min
- C++ style casts, consts added
- check that a can be subtracted from b, when a>b
- documentation for IOAddress::increase, subtract improved
- couple unnecessary intermediate objects removed
2015-02-18 11:35:46 +01:00
Tomek Mrugalski
079a35c85e
[3711] AllocEngine now uses calculated number of attempts.
2015-02-17 17:27:39 +01:00
Tomek Mrugalski
a1c67bd194
[3711] increaseAddress() moved from AllocEngine to IOAddress
2015-02-17 15:07:30 +01:00
Tomek Mrugalski
cfbe13ad05
[master] Merge branch 'trac3565' (host reservations mac+dhcpv6)
...
Conflicts:
src/bin/dhcp6/dhcp6_srv.cc
2015-02-16 20:26:38 +01:00
Tomek Mrugalski
9ce50790c9
[master] Merge branch 'trac3677' (DHCPv6 renewals with reservations)
...
Conflicts:
src/lib/dhcpsrv/tests/alloc_engine_unittest.cc
2015-02-13 22:09:55 +01:00
Tomek Mrugalski
a339db38d4
[3677] Changes after review.
2015-02-13 21:43:09 +01:00
Tomek Mrugalski
34e62083eb
[3565] reservation-mode is now configurable
2015-02-12 19:33:06 +01:00
Marcin Siodelski
1afa4e24b0
[master] Merge branch 'trac3690'
...
Conflicts:
src/lib/dhcpsrv/tests/alloc_engine_unittest.cc
2015-02-10 19:20:00 +01:00
Marcin Siodelski
6c5a15b08b
[3690] Trivial updates to the Allocation engine as a result of review.
2015-02-10 19:18:53 +01:00
Tomek Mrugalski
1ea60ccfc7
[3677] Partial support for multiple addresses per host added.
2015-02-09 17:11:37 +01:00
Tomek Mrugalski
aa0ae8388d
[3677] alloc_new_leases_in_renewals_ added in AllocEngine
2015-02-09 15:46:09 +01:00
Tomek Mrugalski
4698f4642a
[3677] Initial handful of reservation+renewal tests implemented.
2015-02-06 20:32:06 +01:00
Tomek Mrugalski
e171825fe6
[3677] HR implemented for lease6 renewals
2015-02-06 19:14:01 +01:00
Tomek Mrugalski
d5804e99b5
[3677] Leases that no longer match subnet info are now removed.
2015-02-06 18:14:10 +01:00
Tomek Mrugalski
e6b5451cbe
[3677] PD renewal moved to AllocEngine.
2015-02-06 15:34:18 +01:00
Marcin Siodelski
8b8d69fe91
[3690] Added unit test to cover change in allocation engine.
...
Also, further fixes in allocation engine were needed to correctly handle
the case when a client is requesting an address which belongs to
someone else.
2015-02-06 12:27:20 +01:00
Tomek Mrugalski
27758f699c
[3677] Fix for two unit-tests disabled in #3563
2015-02-06 11:44:15 +01:00
Tomek Mrugalski
24666be791
[3677] Code for IA_NA renewal moved to AllocEngine
2015-02-06 11:41:28 +01:00
Tomek Mrugalski
e2a3e5e74a
[master] Merge branch 'trac3563' (Reservations in DHCPv6)
...
Conflicts:
src/lib/dhcpsrv/alloc_engine.cc
2015-02-05 16:12:03 +01:00
Tomek Mrugalski
d5c43ea6f0
[3563] Final changes after 2nd review:
...
- if-else clauses in allocateLeases6
- allocateUnreservedLeases6 uses for instead of do loop
2015-02-05 13:28:12 +01:00
Tomek Mrugalski
900ef775b4
[3563] Capitalizations corrected, new unit-test for AllocEngine added.
2015-02-03 17:30:18 +01:00
Marcin Siodelski
6734961cd6
[3692] Address review comments.
...
Replaced the do-while loop with the for loop in the allocateLease4. Also,
updated the copyright date.
2015-02-03 16:42:29 +01:00
Tomek Mrugalski
e767ad1687
[3563] Changes after review:
...
- general improvements in AllocEngine
- doc updated
2015-02-03 16:29:07 +01:00
Marcin Siodelski
796ca1b18e
[3690] Tentative fix for allocating v4 address reserved to someone else.
2015-01-27 20:50:32 +01:00
Marcin Siodelski
77933170ef
[3692] Prevent infinite loops in allocation engine when pool exhausted.
2015-01-27 18:37:11 +01:00
Tomek Mrugalski
e233de20fc
[3563] removeNonreservedLeases6 implemented
2015-01-22 22:50:50 +01:00
Tomek Mrugalski
1a530d43c7
[3563] Implemented 2 unit-tests, emoveNonmatchingReservedLeases6
2015-01-22 22:15:13 +01:00
Tomek Mrugalski
ee150f176b
[3563] Six unit-tests implemented for AllocEngine6 + Reservations
2015-01-22 20:14:30 +01:00
Tomek Mrugalski
02d214b3a1
[3563] Extended AllocEngine with HostMgr::get6() calls.
2015-01-19 19:37:16 +01:00
Tomek Mrugalski
7e9704fc04
[3563] v6 lease allocation restructured.
2015-01-13 19:34:14 +01:00