Razvan Becheriu
86de039f21
[ #4056 ] backport #3949 to v3_0
2025-08-12 18:24:18 +03:00
Marcin Godzina
108a9e2485
[ #3816 ] release changes
2025-03-21 20:04:50 +01:00
Razvan Becheriu
fc48088e04
[ #1336 ] refactor unittests
2025-03-13 09:52:59 +02:00
Marcin Godzina
a7bcf01ace
[ #3686 ] release changes
2024-12-06 19:57:06 +01:00
Thomas Markwalder
b4ca3bdd20
[ #3582 ] Update kea-dhcp6 parsing and UTs
...
/doc/examples/kea4/all-keys.json
/doc/examples/kea4/classify.json
/doc/examples/kea4/classify2.json
/doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
/doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
/doc/examples/kea4/ha-load-balancing-server2-mt.json
/doc/examples/kea4/ha-load-balancing-server2-mt.json
/doc/examples/kea4/hooks-radius.json
/doc/examples/kea6/all-keys.json
/src/bin/dhcp4/tests/config_parser_unittest.cc
TEST_F(Dhcp4ParserTest, deprecatedClientClassesCheck) - new test
/src/bin/dhcp4/tests/get_config_unittest.cc
updated
/src/bin/dhcp6/dhcp6_lexer.ll
/src/bin/dhcp6/dhcp6_parser.yy
added support for client-classes
/src/bin/dhcp6/tests/config_parser_unittest.cc
updated
TEST_F(Dhcp6ParserTest, sharedNetworksDeriveClientClass) - removed obsolete test
TEST_F(Dhcp6ParserTest, deprecatedClientClassesCheck) - new test
/src/bin/dhcp6/tests/get_config_unittest.cc
/src/bin/dhcp6/tests/host_unittest.cc
/src/bin/dhcp6/tests/shared_network_unittest.cc
updated
src/lib/dhcpsrv/parsers/simple_parser6.cc
Corrected globals
2024-11-26 17:19:56 +00:00
Razvan Becheriu
34e98d10f6
[ #3017 ] added testing framework for using dummy test interfaces
2023-10-17 12:35:55 +03:00
Francis Dupont
b168addec3
[ #2866 ] Updated server tests
2023-06-26 14:24:42 +02:00
Razvan Becheriu
af6ff1578a
[ #1518 ] extended unittests for v6
2023-03-10 17:38:55 +02:00
Andrei Pavel
4450e0514a
[ #2769 ] release changes
2023-02-17 17:42:41 +02:00
Thomas Markwalder
2ec065a08a
[ #2631 ] Global reserved addresses must be feasible
...
kea-dhcp<4/6> both now enforce globally reserved addresses
to be within the selected subnet/shared-network
Added a ChangeLog entry
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/dhcp6-srv.rst
Updated global reservation commmentary
src/lib/dhcpsrv/alloc_engine.cc
AllocEngine::allocateGlobalReservedLeases6() - modified to enforce
address feasibility/subnet reselect
AllocEngine::labelNetworkOrSubnet() - new convenience method for logging
hasAddressReservation() - modified to enforce
address feasibility/subnet reselect
src/lib/dhcpsrv/alloc_engine_messages.mes
New log messages:
ALLOC_ENGINE_IGNORING_UNSUITABLE_GLOBAL_ADDRESS
ALLOC_ENGINE_IGNORING_UNSUITABLE_GLOBAL_ADDRESS6
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc
src/lib/dhcpsrv/tests/alloc_engine_utils.*
src/bin/dhcp4/tests/host_unittest.cc
src/bin/dhcp6/tests/host_unittest.cc
New and updated tests
2023-02-13 13:48:36 -05:00
Andrei Pavel
4076cd1505
[ #1656 ] 1.9.4 release: spelling check
2021-01-25 13:52:10 +02:00
Andrei Pavel
c53e135833
[ #1656 ] 1.9.4 release: update copyrights
2021-01-25 13:52:09 +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
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
4bb89f01a7
[ #1405 ] implemented separate boolean flags for reservation modes
2020-11-18 15:55:22 +02:00
Razvan Becheriu
3f226ad8d0
[ #1405 ] fixed unittests
2020-11-18 15:55:22 +02:00
Marcin Siodelski
5d570cf077
[ #1428 ] Use ip-reservations-unique in alloc engine
2020-10-08 15:44:39 +02:00
Marcin Siodelski
ab278ed455
[ #1428 ] Basic support for ip-reservations-unique
...
The DHCPv4 and DHCPv6 servers accept ip-reservations-unique configuration
for IP addresses specified in the configuration file.
2020-10-08 15:44:39 +02:00
Francis Dupont
2035f64c1c
[ #1308 ] Got rid of boost function/bind
2020-08-13 13:54:14 +00:00
Marcin Siodelski
fb4fe8f19e
[ #1139 ] Improved host based classification
...
The DHCPv6 server now supports the case when client classes are specified
in the host reservation and can be used to influence the pool selection
within a top level subnet.
2020-03-19 12:14:51 +00:00
Marcin Siodelski
879116c595
[ #1139 ] Host based classes used in allocation
...
The change made for DHCPv6 server.
2020-03-19 12:14:51 +00:00
Wlodek Wencel
a0a46481eb
[master] dates updates, part2
2018-11-07 15:45:27 +01:00
Wlodek Wencel
b4cee0a35c
[master] dates, versions updated for release
2018-11-07 15:40:56 +01:00
Thomas Markwalder
91f8ca94f3
[#13,!6] Addressed review comments
...
Mostly corrections additions to commentary.
2018-08-27 13:23:17 -04:00
Thomas Markwalder
ac87dd2585
[#13,!6] - Added unit tests to bin/dhcp6 to verify global HRs
...
src/bin/dhcp6/tests/dhcp6_test_utils.cc
Minor mods to emit configuration/parsing errors
src/bin/dhcp6/tests/host_unittest.cc
HostTest::sarrTest() - new function for testing a
SARR that should result in a lease
TEST_F(HostTest, globalReservationsNA)
TEST_F(HostTest, globalReservationsPD) - new tests
to verify global HRs
2018-08-20 14:46:07 -04:00
Marcin Siodelski
cda9d59aa9
[5387] Created unit test for conflict resolution with expired leases.
2017-10-24 17:20:06 +02:00
Josh Soref
185a9147be
spelling: overridden
2017-07-23 15:19:44 -04:00
Wlodek Wencel
9e3ca83d07
[v_1_2_0] copy right dates updated
2017-04-12 15:47:26 +02:00
Tomek Mrugalski
27956d95a3
[master] Merge branch github47 (typos)
...
# Conflicts:
# src/bin/dhcp4/json_config_parser.cc
# src/bin/dhcp4/tests/fqdn_unittest.cc
# src/bin/dhcp6/dhcp6_srv.h
# src/bin/dhcp6/tests/fqdn_unittest.cc
# src/lib/config/command_mgr.h
# src/lib/dhcpsrv/alloc_engine.h
# src/lib/dhcpsrv/parsers/client_class_def_parser.h
# src/lib/dhcpsrv/parsers/dbaccess_parser.cc
# src/lib/dhcpsrv/parsers/dhcp_parsers.cc
# src/lib/dhcpsrv/parsers/dhcp_parsers.h
# src/lib/dhcpsrv/srv_config.h
# src/lib/dhcpsrv/tests/client_class_def_parser_unittest.cc
# src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
# src/lib/eval/eval_context.h
# src/lib/hooks/callout_manager.cc
# src/lib/testutils/dhcp_test_lib.sh.in
2017-02-10 18:47:03 +01:00
Andrei Pavel
9082500187
Corrected typos
2016-12-14 16:57:44 +02:00
Tomek Mrugalski
f9abab4bd0
[5014_phase2] SimpleParser implemented, 4 parsers converted
...
- SimpleParser concept implemented
- Converted 4 parsers (option data, option data list, option defintion,
option definition list)
- updated unit-tests
- converted other parsers (HostReservationParser{4,6}, ClientClassDefParser)
to use those new parsers
- converted kea-dhcp{4,6} to use those new parsers
Conflicts:
src/bin/dhcp6/json_config_parser.cc
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
2016-11-29 20:09:14 +01:00
Marcin Siodelski
ef182c34a5
[5022] Another test description corrected.
2016-10-13 16:29:03 +02:00
Tomek Mrugalski
88b78f0b48
[5022] test descriptions updated
2016-10-13 13:51:47 +02:00
Marcin Siodelski
4c7c37594f
[5022] Updated hosts test to check that pool options are overriden.
2016-10-06 09:57:34 +02:00
Marcin Siodelski
a024d79008
[3161] Pass values by reference where it makes sense.
...
Reported by cpp-check.
2016-09-13 15:33:38 +02:00
Marcin Siodelski
0bfb2a9093
[master] Merge branch 'trac4321'
2016-07-06 20:19:02 +02:00
Francis Dupont
b239ccf360
[4321] Cosmetics changes (no real code change)
2016-07-04 13:13:59 +02:00
Marcin Siodelski
5c3023baab
[4321] Implemented unit test for conflict resolution with reservations.
2016-06-17 18:17:02 +02:00
Marcin Siodelski
cd397470f4
[4321] Added unit test for Solicit after lease acquisition.
...
The new test uses swapped addresses as hints after acquiring
these addresses in a 4-way exchange. The server ignores hints.
2016-06-17 16:34:35 +02:00
Marcin Siodelski
9df2012346
[4321] Do not replace allocated reserved address in the IA.
...
If IA contains allocated lease for which there is a reservation
the liftime of this lease is extended. Any newly reserved
lease will be assigned to a different IA, possibly replacing
dynamically allocated lease.
2016-06-17 15:32:20 +02:00
Marcin Siodelski
de5f1831ed
[4321] Extended host tests for multiple IAs.
...
Tests now use common function to verify the server's response.
Also, improved commentary in the tests.
2016-06-16 12:32:57 +02:00
Marcin Siodelski
774b4fa4fe
[3573] Addressed review comments.
...
Decided to not move the HostTest::doExchange class to the test
utils as it would cause circular dependency.
2016-06-13 21:00:50 +02:00
Marcin Siodelski
2e3cedb832
[4321] Added basic test for multiple v6 reservations.
2016-06-13 11:57:53 +02:00
Marcin Siodelski
cb1c570297
[4321] Rename useNA and usePD to requestAddress and requestPrefix.
2016-06-13 11:57:53 +02:00
Marcin Siodelski
fb8666ba0b
[4321] Test DHCPv6 client can send multiple IAs.
2016-06-13 11:57:53 +02:00
Marcin Siodelski
e720266dcd
[3573] Assign host specific options by the DHCPv6 server.
...
Also, fixes in the host unit tests.
2016-05-31 11:09:29 +02:00
Marcin Siodelski
2ebc4da9d7
[3573] Further extended tests for DHCPv6 options reservations.
...
Added tests for Renew and Rebind and did some minor cleanups.
2016-05-31 10:33:11 +02:00
Marcin Siodelski
5e3ac125a8
[3573] Added basic test verifying assignment of host specific options.
2016-05-30 17:02:47 +02:00
Marcin Siodelski
440fd061d3
[4303] Values in 'host-reservation-identifiers' used by the servers.
...
Both DHCPv4 and DHCPv6.
2016-04-14 14:40:55 +02:00