2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 04:57:52 +00:00

178 Commits

Author SHA1 Message Date
Francis Dupont
7f34f80f9e [#226] Added adaptive-lease-time-threshold 2025-08-20 17:39:15 +02:00
Razvan Becheriu
1d83dd5479 [#3927] remove key-password 2025-07-09 15:40:43 +03:00
Razvan Becheriu
ff73ae4d04 [#3927] add ssl-mode parameter 2025-07-09 07:42:22 +03:00
Razvan Becheriu
7b961f6b78 [#3927] add TLS parameters to pgsql connection 2025-07-08 10:59:42 +00:00
Thomas Markwalder
bfe892dfa2 [#3049] kea-dhcp4 parsing and UTs
Fully functional in kea-dhcp4 (excluding doc update and CB support)

/doc/examples/kea4/all-keys.json
    Added entries to a pool

/src/bin/dhcp4/dhcp4_lexer.ll
/src/bin/dhcp4/dhcp4_parser.yy
    Added parameters to pools

/src/bin/dhcp4/dhcp4_srv.cc
    Added comment

/src/bin/dhcp4/tests/config_parser_unittest.cc
    TEST_F(Dhcp4ParserTest, poolDdnsParameters) - new test

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

/src/bin/dhcp4/tests/get_config_unittest.cc
    Updated

/src/lib/dhcpsrv/parsers/base_network_parser.*
    Moved DDNS parameter parsing to a function template to allow use
    by any class type

/src/lib/dhcpsrv/parsers/dhcp_parsers.cc
    Added DDNS parameter parsing to PoolParser

/src/lib/dhcpsrv/parsers/simple_parser4.cc
    Added paramters to pool

/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
    TEST_F(DhcpParserTest, validDdnsParmatersPool4) - new test
2025-01-22 15:24:25 +00:00
Thomas Markwalder
f414f9aa2d [#2819] kea-dhcp4 supports ddns-ttl, min, and max
Added support for ddns-ttl,ddns-ttl-min, and ddsn-ttl-max
to global,shared-network, and subnet for kea-dhcp4

Changes to be committed:
modified:   doc/examples/kea4/all-keys.json
modified:   src/bin/dhcp4/dhcp4_lexer.cc
modified:   src/bin/dhcp4/dhcp4_lexer.ll
modified:   src/bin/dhcp4/dhcp4_parser.cc
modified:   src/bin/dhcp4/dhcp4_parser.h
modified:   src/bin/dhcp4/dhcp4_parser.yy
modified:   src/bin/dhcp4/json_config_parser.cc
modified:   src/bin/dhcp4/tests/config_parser_unittest.cc
modified:   src/bin/dhcp4/tests/fqdn_unittest.cc
modified:   src/bin/dhcp4/tests/get_config_unittest.cc
modified:   src/bin/dhcp6/json_config_parser.cc
modified:   src/lib/dhcpsrv/cb_ctl_dhcp4.cc
modified:   src/lib/dhcpsrv/cb_ctl_dhcp6.cc
modified:   src/lib/dhcpsrv/cfg_globals.cc
modified:   src/lib/dhcpsrv/cfg_globals.h
modified:   src/lib/dhcpsrv/dhcpsrv_messages.cc
modified:   src/lib/dhcpsrv/dhcpsrv_messages.h
modified:   src/lib/dhcpsrv/dhcpsrv_messages.mes
modified:   src/lib/dhcpsrv/ncr_generator.cc
modified:   src/lib/dhcpsrv/ncr_generator.h
modified:   src/lib/dhcpsrv/network.cc
modified:   src/lib/dhcpsrv/network.h
modified:   src/lib/dhcpsrv/parsers/base_network_parser.cc
modified:   src/lib/dhcpsrv/parsers/simple_parser4.cc
modified:   src/lib/dhcpsrv/parsers/simple_parser6.cc
modified:   src/lib/dhcpsrv/srv_config.cc
modified:   src/lib/dhcpsrv/srv_config.h
modified:   src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
modified:   src/lib/dhcpsrv/tests/ncr_generator_unittest.cc
modified:   src/lib/dhcpsrv/tests/network_unittest.cc
modified:   src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
modified:   src/lib/dhcpsrv/tests/srv_config_unittest.cc
modified:   src/lib/util/str.cc
modified:   src/lib/util/str.h
2024-12-16 10:15:09 -05:00
Thomas Markwalder
24a2bbe164 [#3592] Update kea-dhcp4 parsing and UTs
/src/bin/dhcp4/dhcp4_lexer.ll b/src/bin/dhcp4/dhcp4_lexer.ll
/src/bin/dhcp4/dhcp4_parser.yy b/src/bin/dhcp4/dhcp4_parser.yy
    Add "client-classes" to SUBNET4, POOLS, and SHARED_NETWORK

/src/bin/dhcp4/tests/classify_unittest.cc
    Update tests
    TEST_F(ClassifyTest, networkScopeClientClasses) - new test

/src/bin/dhcp4/tests/config_parser_unittest.cc
    Update tests
    TEST_F(Dhcp4ParserTest, sharedNetworksDeriveClientClass) - delete obsolete test

/src/bin/dhcp4/tests/get_config_unittest.cc
/src/bin/dhcp6/tests/config_parser_unittest.cc
    Updated tests
2024-11-26 17:19:56 +00:00
Francis Dupont
4ff4dd61d3 [#3609] Regen flex/bison 2024-11-22 09:55:31 +01:00
Francis Dupont
9d4ddcdfb7 [#3609] Regen flex/bison 2024-11-22 09:55:31 +01:00
Thomas Markwalder
3328540c76 [#3587] Updated kea-dhcp4 parser
doc/examples/kea4/all-keys.json
doc/examples/kea4/classify2.json
src/bin/dhcp4/dhcp4_lexer.cc
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.cc
src/bin/dhcp4/dhcp4_parser.h
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/tests/classify_unittest.cc
src/bin/dhcp4/tests/config_parser_unittest.cc
src/lib/dhcpsrv/parsers/client_class_def_parser.cc
2024-10-28 07:58:38 -04:00
Thomas Markwalder
74a37d39e0 [#3583] Added client-class to OptionDescriptor
option-data.client-classes can be parsed and
stored in OptionDescriptor.

/src/bin/dhcp4/dhcp4_lexer.ll
/src/bin/dhcp4/dhcp4_parser.yy

/src/bin/dhcp6/dhcp6_lexer.ll
/src/bin/dhcp6/dhcp6_parser.yy

/src/lib/dhcp/classify.*
    Added ClientClasses copy and equality operators

/src/lib/dhcp/tests/classify_unittest.cc
    Udpated unit tests

/src/lib/dhcpsrv/cfg_option.cc
    Added OptionDecription::client_classes_ and supporting funcs

/src/lib/dhcpsrv/parsers/option_data_parser.cc
    OptionDataParser::createOption() - modified to parse 'client-classes'

/src/lib/dhcpsrv/parsers/simple_parser4.cc
    Added 'client-classes' to OPTION4_PARAMETERS

/src/lib/dhcpsrv/parsers/simple_parser6.cc
    Added 'client-classes' to OPTION6_PARAMETERS

/src/lib/dhcpsrv/tests/cfg_option_unittest.cc
    Updated tests

/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
    TEST_F(ParseConfigTest, optionDataClientClasses4)
    TEST_F(ParseConfigTest, optionDataClientClasses6)
    TEST_F(ParseConfigTest, optionDataClientClassesEmpty4)
    TEST_F(ParseConfigTest, optionDataClientClassesEmpty6)
    - new tests
2024-10-15 13:51:56 -04:00
Francis Dupont
b2585e77dc [#3585] Regen flex/bison 2024-10-09 16:25:04 +02:00
Francis Dupont
fbb6f78b8f [#3477] Regen flex/bison 2024-08-01 09:23:53 +02:00
Razvan Becheriu
6671e30bc6 [#2959] addressed comments 2024-05-22 21:54:28 +03:00
Razvan Becheriu
ef732b43b5 [#2958] add upgrade script 2024-05-22 19:05:30 +03:00
Francis Dupont
7415bca627 [#3378] Regen flex/bison 2024-05-13 18:15:43 +02:00
Francis Dupont
9f1cd96993 [#2976] Regen flex/bison 2024-04-26 18:25:06 +03:00
Razvan Becheriu
d781e915cd [#3019] retry db open on startup 2023-12-14 08:01:42 +02:00
Razvan Becheriu
150ef07994 [#3003] output_options alias for output-options 2023-09-18 08:08:07 +00:00
Andrei Pavel
1b65e12702
[#2991] release changes 2023-07-20 16:13:13 +03:00
Thomas Markwalder
68e1442012 [#2276] Initial impl ddns-resolution-conflict-mode
New Files:
	src/bin/d2/check_exists_add.cc
	src/bin/d2/check_exists_add.h
	src/bin/d2/check_exists_remove.cc
	src/bin/d2/check_exists_remove.h
	src/bin/d2/simple_add_without_dhcid.cc
	src/bin/d2/simple_add_without_dhcid.h
	src/bin/d2/simple_remove_without_dhcid.cc
	src/bin/d2/simple_remove_without_dhcid.h

	src/bin/d2/tests/check_exists_add_unittests.cc
	src/bin/d2/tests/check_exists_remove_unittests.cc
	src/bin/d2/tests/simple_add_without_dhcid_unittests.cc
	src/bin/d2/tests/simple_remove_without_dhcid_unittests.cc

Modified:
	doc/examples/kea4/all-keys.json
	doc/examples/kea4/with-ddns.json
	doc/examples/kea6/all-keys.json
	doc/examples/kea6/with-ddns.json

	src/bin/d2/Makefile.am
	src/bin/d2/check_exists_add.cc
	src/bin/d2/check_exists_add.h
	src/bin/d2/check_exists_remove.cc
	src/bin/d2/check_exists_remove.h
	src/bin/d2/d2_update_mgr.cc
	src/bin/d2/simple_add_without_dhcid.cc
	src/bin/d2/simple_add_without_dhcid.h
	src/bin/d2/simple_remove_without_dhcid.cc
	src/bin/d2/simple_remove_without_dhcid.h
	src/bin/d2/tests/Makefile.am
	src/bin/d2/tests/check_exists_add_unittests.cc
	src/bin/d2/tests/check_exists_remove_unittests.cc
	src/bin/d2/tests/d2_process_unittests.cc
	src/bin/d2/tests/d2_queue_mgr_unittests.cc
	src/bin/d2/tests/d2_update_mgr_unittests.cc
	src/bin/d2/tests/nc_add_unittests.cc
	src/bin/d2/tests/nc_remove_unittests.cc
	src/bin/d2/tests/simple_add_unittests.cc
	src/bin/d2/tests/simple_add_without_dhcid_unittests.cc
	src/bin/d2/tests/simple_remove_unittests.cc
	src/bin/d2/tests/simple_remove_without_dhcid_unittests.cc

    src/bin/dhcp4/dhcp4_lexer.cc
    src/bin/dhcp4/dhcp4_lexer.ll
	src/bin/dhcp4/dhcp4_parser.cc
	src/bin/dhcp4/dhcp4_parser.h
	src/bin/dhcp4/dhcp4_parser.yy
	src/bin/dhcp4/json_config_parser.cc
	src/bin/dhcp4/location.hh
	src/bin/dhcp4/parser_context.h
	src/bin/dhcp4/tests/config_parser_unittest.cc
	src/bin/dhcp4/tests/d2_unittest.cc
	src/bin/dhcp4/tests/fqdn_unittest.cc
	src/bin/dhcp4/tests/get_config_unittest.cc

	src/bin/dhcp6/dhcp6_lexer.cc
	src/bin/dhcp6/dhcp6_lexer.ll
	src/bin/dhcp6/dhcp6_parser.cc
	src/bin/dhcp6/dhcp6_parser.h
	src/bin/dhcp6/dhcp6_parser.yy
	src/bin/dhcp6/dhcp6_srv.cc
	src/bin/dhcp6/json_config_parser.cc
	src/bin/dhcp6/location.hh
	src/bin/dhcp6/parser_context.h
	src/bin/dhcp6/tests/config_parser_unittest.cc
	src/bin/dhcp6/tests/d2_unittest.cc
	src/bin/dhcp6/tests/fqdn_unittest.cc
	src/bin/dhcp6/tests/get_config_unittest.cc

	src/lib/d2srv/testutils/nc_test_utils.cc
	src/lib/d2srv/testutils/nc_test_utils.h

	src/lib/dhcp_ddns/ncr_msg.cc
	src/lib/dhcp_ddns/ncr_msg.h
	src/lib/dhcp_ddns/tests/ncr_udp_unittests.cc
	src/lib/dhcp_ddns/tests/ncr_unittests.cc

	src/lib/dhcpsrv/cfg_globals.cc
	src/lib/dhcpsrv/cfg_globals.h
	src/lib/dhcpsrv/ncr_generator.cc
	src/lib/dhcpsrv/network.cc
	src/lib/dhcpsrv/network.h
	src/lib/dhcpsrv/parsers/base_network_parser.cc
	src/lib/dhcpsrv/parsers/base_network_parser.h
	src/lib/dhcpsrv/parsers/simple_parser4.cc
	src/lib/dhcpsrv/parsers/simple_parser6.cc
	src/lib/dhcpsrv/srv_config.cc
	src/lib/dhcpsrv/srv_config.h
	src/lib/dhcpsrv/tests/d2_udp_unittest.cc
	src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
	src/lib/dhcpsrv/tests/ncr_generator_unittest.cc
	src/lib/dhcpsrv/tests/network_unittest.cc
	src/lib/dhcpsrv/tests/srv_config_unittest.cc
2023-07-06 14:27:25 +00:00
Razvan Becheriu
779459c219 [#2898] add pool-id to parsers 2023-06-22 14:52:48 +00:00
Marcin Godzina
769b3583ab [#2809] release changes 2023-03-24 23:51:18 +01:00
Thomas Markwalder
904f4d2611 [#225] Added ddsn-ttl-percent parameter
kea-dhcp4/6 both now support ddns-ttl-percent
at the global, shared-network, and subnet scopes.
If specified it is the percentage of the lease
lifetime to send to D2.

Not yet supported by CB.

modified:
doc/examples/kea4/all-keys.json
doc/examples/kea6/all-keys.json
src/bin/dhcp4/dhcp4_lexer.cc
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.cc
src/bin/dhcp4/dhcp4_parser.h
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/json_config_parser.cc
src/bin/dhcp4/location.hh
src/bin/dhcp6/dhcp6_lexer.cc
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.cc
src/bin/dhcp6/dhcp6_parser.h
src/bin/dhcp6/dhcp6_parser.yy
src/bin/dhcp6/dhcp6_srv.cc
src/bin/dhcp6/json_config_parser.cc
src/bin/dhcp6/location.hh
src/bin/dhcp6/tests/fqdn_unittest.cc
src/lib/dhcpsrv/cfg_globals.cc
src/lib/dhcpsrv/cfg_globals.h
src/lib/dhcpsrv/dhcpsrv_messages.cc
src/lib/dhcpsrv/dhcpsrv_messages.h
src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/ncr_generator.cc
src/lib/dhcpsrv/ncr_generator.h
src/lib/dhcpsrv/network.cc
src/lib/dhcpsrv/network.h
src/lib/dhcpsrv/parsers/base_network_parser.cc
src/lib/dhcpsrv/parsers/base_network_parser.h
src/lib/dhcpsrv/parsers/simple_parser4.cc
src/lib/dhcpsrv/parsers/simple_parser6.cc
src/lib/dhcpsrv/srv_config.cc
src/lib/dhcpsrv/srv_config.h
src/lib/dhcpsrv/tests/ncr_generator_unittest.cc
src/lib/dhcpsrv/tests/network_unittest.cc
src/lib/dhcpsrv/tests/srv_config_unittest.cc
2023-03-24 12:50:00 -04:00
Francis Dupont
9b86464f43 [2785] Regen flex and bison 2023-03-24 09:01:20 +00:00
Thomas Markwalder
5044e64958 [#2719] Addresssed more comments, added to class parser
modified:
    src/bin/dhcp4/dhcp4_lexer.cc
    src/bin/dhcp4/dhcp4_lexer.ll
    src/bin/dhcp4/dhcp4_parser.cc
    src/bin/dhcp4/dhcp4_parser.h
    src/bin/dhcp4/dhcp4_parser.yy
    src/hooks/dhcp/mysql_cb/mysql_cb_dhcp4.cc
    src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp4.cc
    src/lib/dhcpsrv/client_class_def.cc
2023-03-23 07:18:26 -04:00
Thomas Markwalder
ef3281460d [#2719] Renamed parameter and added it to classes
Renamed offer-lft to offer-lifetime to match other
lifetime parameters.
2023-03-23 07:17:48 -04:00
Thomas Markwalder
1ea70ecc43 [#2719] Adds offer_lft to globali and network scopes
offer-lft added to global, shared-network4, and subnet4
Can be set/fetched/parsed but does nothing yet.

src/lib/dhcpsrv/parsers/simple_parser4.cc
src/lib/dhcpsrv/cfg_globals.*
    Add offer-lft to global, shared-network4, and subnet4 values

src/lib/dhcpsrv/network.*
    Add offer_lft_ to Network4

src/lib/dhcpsrv/parsers/base_network_parser.*
    BaseNetworkParser::parseOfferLft() - new function

src/lib/dhcpsrv/parsers/dhcp_parsers.cc
    Subnet4ConfigParser::initSubnet()

src/lib/dhcpsrv/parsers/shared_network_parser.cc
    SharedNetwork4Parser::parse() - add call to parseOfferLft()

src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
    TEST_F(AllocEngine4Test, discoverOfferLft) - new test, currently
    fails because impl is missing.

src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc
src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
src/lib/dhcpsrv/tests/network_unittest.cc
src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
    Updated tests to account for offer-lft

src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/json_config_parser.cc
    Added offer-lft

src/bin/dhcp4/tests/get_config_unittest.cc
    Regenerated tests.
2023-03-23 07:17:48 -04:00
Francis Dupont
146f59cd42 [#719] Regen lex and parser 2023-03-15 13:49:21 +01:00
Francis Dupont
2bfea34052 [#719] Regen lex and parser 2023-03-15 13:49:21 +01:00
Francis Dupont
340a25e74c [#720] Regen lex and parser 2023-03-13 14:52:20 +01:00
Marcin Siodelski
e471cd6086 [#2688] Updated DHCP server parsers 2023-01-17 11:26:51 +01:00
Marcin Siodelski
d92cc17a20 [#969] DHCPv6 allocators configurable 2023-01-07 11:45:06 +01:00
Marcin Siodelski
9571b8f80b [#969] Configure allocator for DHCPv4 2023-01-07 11:45:06 +01:00
Razvan Becheriu
85ee4d1688 [#248] regenerated parsers 2022-10-24 17:49:34 +00:00
Francis Dupont
63995785e9 [2595] regen flex/bison 2022-10-18 22:59:06 +02:00
Dan Theisen
b63755835e [#2543] Regenerate parsers 2022-10-11 01:03:46 -07:00
Marcin Godzina
e63319b0ed [#2388] release changes 2022-04-25 19:17:45 +02:00
Razvan Becheriu
2076cde182 [#1716] regenerated parser files 2022-04-05 10:51:55 +03:00
Francis Dupont
28f001f6c0 [2116] regen flex/bison 2022-03-31 08:11:37 +00:00
Razvan Becheriu
d41571ce17 [#2116] remove cql code 2022-03-31 08:11:37 +00:00
Francis Dupont
9df65becb2 [2249] regen flex/bison 2022-03-14 20:20:37 +02:00
Razvan Becheriu
34574b0116 [#2036] regenerated parser files 2022-02-04 18:55:51 +02:00
Francis Dupont
9030e39ca9 [34] regen flex/bison 2022-01-06 13:12:40 +01:00
Andrei Pavel
051fd12ffc
[#2084] regenerate parsers 2021-12-17 17:21:51 +02:00
Andrei Pavel
c160323039
[#2197] release changes 2021-11-22 12:59:15 +02:00
Wlodek Wencel
4125b128d0 [#2107] parsers regen for release 2021-09-27 07:39:31 +00:00
Thomas Markwalder
f914dd9c96 [#1307] Added parked-packet-limit parameter to kea-dhcp4
Can be parsed, but does nothing

doc/examples/kea4/all-keys.json
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/json_config_parser.cc
src/lib/dhcpsrv/parsers/simple_parser4.cc
    added parked-packet-limit

src/bin/dhcp4/tests/config_parser_unittest.cc
    TEST_F(Dhcp4ParserTest, parkedPacketLimit)  - new test

src/bin/dhcp4/tests/get_config_unittest.cc
    updated
2021-09-17 11:10:34 -04:00
Andrei Pavel
17412cc914
[#1947] 1.9.9 release changes 2021-06-28 10:34:31 +03:00
Wlodek Wencel
95f5255ff8 [#1887] release changes 2021-05-23 23:34:09 -07:00