2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 01:49:48 +00:00

534 Commits

Author SHA1 Message Date
Razvan Becheriu
785efcc92a [#3333] move hook libraries to open source 2025-02-21 21:34:58 +00:00
Francis Dupont
6d95ccb0f0 [#3398] Made 1234 the default secret/password 2025-01-27 15:05:11 +01:00
Thomas Markwalder
6a367165f8 [#3049] Pool parameters function in v6
/doc/examples/kea6/all-keys.json
    Added DDNS parameters to a pool

/doc/sphinx/arm/dhcp6-srv.rst
    Updated section on DDNS Behavioral Parameters

/src/bin/dhcp4/tests/config_parser_unittest.cc
    Added missing commentary

/src/bin/dhcp6/dhcp6_lexer.ll
/src/bin/dhcp6/dhcp6_parser.yy
    Added parameters to POOL

/src/bin/dhcp6/tests/config_parser_unittest.cc
    TEST_F(Dhcp6ParserTest, poolDdnsParameters) - new test

/src/bin/dhcp6/tests/fqdn_unittest.cc
    TEST_F(FqdnDhcpv6SrvTest, poolDdnsParametersTest) - new test

/src/bin/dhcp6/tests/get_config_unittest.cc
    Rebuilt
2025-01-22 15:24:25 +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
aada0ae3e5 [#3663] Fix kea4/all-keys.json
Apparently a comment must have a space following the two
slashes or it isn't a comment.
2024-12-17 07:18:26 -05:00
Thomas Markwalder
f7498e2752 [#3663] FIx all-keys.json files
Correct invalid configurations in all-keys.json files

    doc/examples/kea4/all-keys.json
    doc/examples/kea6/all-keys.json
2024-12-16 14:42:36 -05:00
Thomas Markwalder
3e4a43a678 [#2819] kea-dhcp6 support implemented
kea-dhcp6 supports the new ddns ttl parameters

modified:   ../../../../doc/examples/kea6/all-keys.json
modified:   ../dhcp6_lexer.cc
modified:   ../dhcp6_lexer.ll
modified:   ../dhcp6_parser.cc
modified:   ../dhcp6_parser.h
modified:   ../dhcp6_parser.yy
modified:   ../dhcp6_srv.cc
modified:   ../json_config_parser.cc
modified:   config_parser_unittest.cc
modified:   fqdn_unittest.cc
modified:   get_config_unittest.cc
2024-12-16 10:15:09 -05: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
8be11da77f [#3592] Fixed minor typos in docs
modified:   doc/examples/kea4/hooks-radius.json
modified:   doc/sphinx/arm/dhcp4-srv.rst
modified:   doc/sphinx/arm/dhcp6-srv.rst
modified:   doc/sphinx/arm/hooks-bootp.rst
2024-12-02 16:34:45 +00: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
Francis Dupont
fc3a84eb29 [#3609] Checkpoint: doing syntax 2024-11-22 09:55:31 +01:00
Razvan Becheriu
31754d811d [#3587] addressed review 2024-10-28 07:58:38 -04:00
Thomas Markwalder
9acfe8732f [#3587] Updated kea-dhcp6 parser
Changes to be committed:
    doc/examples/kea6/all-keys.json
    doc/examples/kea6/classify2.json
    src/bin/admin/tests/mysql_tests.sh.in
    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/tests/config_parser_unittest.cc
2024-10-28 07:58:38 -04: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
c53eef5201 [#3583] Updated doc
/doc/examples/kea4/all-keys.json
/doc/examples/kea6/all-keys.json
    Added client-classes to option-data

/doc/sphinx/arm/classify.rst
    Added new section "Option Class-Tagging"

/doc/sphinx/arm/dhcp4-srv.rst
/doc/sphinx/arm/dhcp6-srv.rst
    Added notes with pointers to new section
2024-10-15 13:51:57 -04:00
Razvan Becheriu
264b7100cb [#3586] updated documentation 2024-10-09 13:10:06 +00:00
Razvan Becheriu
9d1ea7767b [#3536] updated examples 2024-10-03 21:04:37 +03:00
Razvan Becheriu
4d506b1f5c [#3536] fixed unittests by disabling configs 2024-10-03 21:04:37 +03:00
Francis Dupont
3cb38f1943 [#1387] Checkpoint: server code 2024-09-04 15:09:40 +02:00
Francis Dupont
e8e7097195 [#3483] Updated RBAC doc 2024-08-22 10:39:00 +02:00
Francis Dupont
bf4ed59d63 [#3477] Making socket name/address exclusive (1) 2024-08-01 09:23:54 +02:00
Razvan Becheriu
6847ba1bda [#3477] fixed comments and unittests 2024-08-01 09:23:54 +02:00
Francis Dupont
797c118ab2 [#3477] Checkpoint before regen 2024-08-01 09:23:53 +02:00
Francis Dupont
78ddd7b9df [#3477] Checkpoint before regen 2024-08-01 09:23:53 +02:00
Francis Dupont
97e0638daa [#3477] Updated dhcp4 syntax 2024-08-01 09:23:53 +02:00
Razvan Becheriu
92102cfda8 [#3424] fixed missing pool-id in pd-pool 2024-05-24 13:43:20 +03:00
Razvan Becheriu
2cbf76f496 [#3301] updated yang modules 2024-05-23 21:24:13 +03:00
Razvan Becheriu
6671e30bc6 [#2959] addressed comments 2024-05-22 21:54:28 +03:00
Razvan Becheriu
23f7d80c41 [#2959] removed deprecated parameter reservation-mode 2024-05-22 21:37:12 +03:00
Razvan Becheriu
d149028d61 [#2958] removed deprecated dhcp-ddns parameters 2024-05-22 19:04:53 +03:00
Francis Dupont
5bee75d3dc [#3378] Removed ip-address from relay syntax 2024-05-13 18:15:43 +02:00
Francis Dupont
b1884326a8 [#2976] Extended syntax 2024-04-26 18:25:06 +03:00
Francis Dupont
998d827669 [#3133] Checkpoint 2024-04-16 19:00:57 +00:00
Andrei Pavel
4dae2a3954
[#3299] fix parked-packet-limit mentions in ARM
- move PPL section to general hooks section
- remove note that PPL is used only for HA
- add PPL section in RADIUS
- add PPL reference in ping-check
- change values in doc/examples to resemble defaults
2024-04-04 15:33:57 +03:00
Piotrek Zadroga
a91ebc6e7b [#3141] addressed review comments
- Mostly further corrections in ARM docs and in comments.
2024-02-23 17:14:41 +01:00
Piotrek Zadroga
34048888ca [#3141] delete excessive dnr.json examples 2024-02-23 17:14:06 +01:00
Piotrek Zadroga
1cb50df248 [#3141] json examples update 2024-02-23 17:14:06 +01:00
Piotrek Zadroga
366d886f5a [#3141] provide RFC in comments 2024-02-23 17:14:06 +01:00
Andrei Pavel
11de31d8ba
[#3198] make data a key for option-data in code
- Add ability to set list element that only has keys in Translator::setItem.
- Explicitly set list elements in case they contain only keys which can
  be more common now that data is a key since it is likely one can have
  entries that only have code, space, and data.
- Handle no data as empty data when setting, and empty data as no data
  when getting. This avoids the need to add an empty "data" element to
  all options that lack it in all-options.json so that the unit tests
  pass. But this goes to show that data-less entries may be encountered
  in production as well, so more importantly this caters to that
  scenario.
- Adjust data in kea4/all-options.json to not contain singlequotes.
  There was only one occurrence of it. This is a limitation related
  to unit testing only. Opened issue 3216 about it.
- Add missing tests that are not strictly related to the data key, but
  they are related to option data:
  - TranslatorOptionDataListTestv6.getEmpty
  - TranslatorOptionDataListTestv4.get
  - TranslatorOptionDataListTestv6.setEmpty
  - TranslatorOptionDataListTestv4.set
- Add unit tests:
  - TranslatorOptionDataListTestv4.optionsSameCodeAndSpace
  - TranslatorOptionDataListTestv6.optionsSameCodeAndSpace
- Add snippet that tests setting of list element with keys only in
  TranslatorTest.setItem.
2024-01-26 12:48:18 +02:00
Piotrek Zadroga
4d4e87b1a3 [#3074] internal opt type refactor 2024-01-15 11:47:41 +01:00
Piotrek Zadroga
4bb524efbe [#3074] option example update 2024-01-09 11:40:04 +01:00
Piotrek Zadroga
bda2a87f0c [#3074] added ChangeLog entry
Also, some other corrections.
2024-01-09 11:39:23 +01:00
Piotrek Zadroga
72225055c2 [#3074] unpack reworked 2024-01-09 11:38:08 +01:00
Piotrek Zadroga
097bfe5fe1 [#3074] adding UTs for option 121 2024-01-09 11:38:08 +01:00
Piotrek Zadroga
92a7cd07f1 [#3074] adding example of option 121 2024-01-09 11:38:08 +01:00
Razvan Becheriu
d781e915cd [#3019] retry db open on startup 2023-12-14 08:01:42 +02:00
Piotrek Zadroga
a975630074 [#3095] update example for v4 option 21 2023-10-20 13:36:06 +00:00
Piotrek Zadroga
ac65b67c35 [#3002] add examples for SZTP redirect options 2023-09-21 07:35:01 +00:00
Razvan Becheriu
150ef07994 [#3003] output_options alias for output-options 2023-09-18 08:08:07 +00:00
Piotrek Zadroga
0af98b4be4 [#2904] revert alias output-options in examples
This reverts commit 12b00c890122313c8a912c4252054aab99bc07ad.
2023-09-18 08:08:07 +00:00