Razvan Becheriu
2b9b79e7a5
[ #3831 ] fixed forensic log path in docs
2025-05-22 12:23:06 +00:00
Razvan Becheriu
0d2ff4ff5e
[ #3833 ] remove references to /tmp/
2025-05-20 00:04:12 +03:00
Thomas Markwalder
16acf248d0
[ #3831 ] Initial impl of restricted ctl sockets
...
Working, have some UTs that still need to be fixed
/doc/examples/kea4/advanced.json
/doc/examples/kea4/all-keys-netconf.json
/doc/examples/kea4/all-keys-netconf.json
/doc/examples/kea4/all-keys.json
/doc/examples/kea4/comments.json
/doc/examples/kea4/config-backend.json
/doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
/doc/examples/kea4/ha-load-balancing-server2-mt.json
/doc/examples/kea6/advanced.json
/doc/examples/kea6/all-keys-netconf.json
/doc/examples/kea6/all-keys.json
/doc/examples/kea6/comments.json
/doc/examples/kea6/config-backend.json
/doc/examples/kea6/ha-hot-standby-server1-with-tls.json
/doc/examples/kea6/ha-hot-standby-server2.json
removed /tmp path from socket-name
/src/bin/dhcp4/tests/config_parser_unittest.cc
/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
/src/bin/dhcp4/tests/dhcp4_test_utils.cc
/src/bin/dhcp4/tests/dhcp4_test_utils.h
/src/bin/dhcp6/tests/config_parser_unittest.cc
/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
/src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
/src/bin/dhcp6/tests/dhcp6_test_utils.cc
/src/bin/dhcp6/tests/dhcp6_test_utils.h
updated tests
/src/lib/config/Makefile.am
/src/lib/config/meson.build
defined CONTROL_SOCKET_DIR
/src/lib/config/tests/unix_command_config_unittests.cc
/src/lib/config/tests/unix_command_mgr_unittests.cc
updated tests
/src/lib/config/unix_command_config.*
UnixCommandConfig - added PathChecker singleton and methods
to set and validate socket path/permissions
/src/lib/util/filesystem.*
Added getPermsissions() and hasPermsission()
/src/lib/util/tests/filesystem_unittests.cc
new permissions tests
2025-05-19 12:12:55 +00:00
Razvan Becheriu
fdc2b1c5f9
[ #3831 ] update CA default config and fix dhcp examples
2025-05-16 12:20:44 +03:00
Thomas Markwalder
c745954d52
[ #3831 ] Addressed further comments
...
/doc/examples/kea6/all-keys-netconf.json
/doc/examples/kea6/all-keys.json
removed data-directory
/doc/sphinx/arm/dhcp6-srv.rst
Updated ARM
/src/bin/dhcp6/dhcp6_messages.*
Changed DHCP6_DATA_DIRECTORY_DEPRECATED
/src/bin/dhcp6/json_config_parser.cc
Removed dirExists() function
parsing logic errors on invalid data-directory
/src/bin/dhcp6/tests/config_parser_unittest.cc
Updated data-directory tests
Other minor cleanups
2025-05-16 12:20:43 +03:00
Thomas Markwalder
36b8bfd263
[ #3831 ] Error on bad lease file path
...
/doc/examples/kea4/all-keys-netconf.json
/doc/examples/kea4/all-keys.json
/doc/examples/kea4/dhcpv4-over-dhcpv6.json
/doc/examples/kea6/all-keys-netconf.json
/doc/examples/kea6/all-keys.json
/doc/examples/kea6/dhcpv4-over-dhcpv6.json
Remove "/tmp" from lease file names
/src/bin/admin/tests/memfile_tests.sh.in
/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in
export KEA_DHCP_DATA_DIR
/src/bin/shell/tests/dhcp4_basic_auth_tests.sh.in
/src/bin/shell/tests/dhcp6_basic_auth_tests.sh.in
/src/bin/shell/tests/shell_dhcp4_process_tests.sh.in
/src/bin/shell/tests/shell_dhcp6_process_tests.sh.in
/src/bin/shell/tests/tls_dhcp4_process_tests.sh.in
/src/bin/shell/tests/tls_dhcp6_process_tests.sh.in
/src/lib/dhcpsrv/dhcpsrv_messages.*
Replace WARN message with DHCPSRV_MEMFILE_FAILED_TO_OPEN error
/src/lib/dhcpsrv/memfile_lease_mgr.cc
Memfile_LeaseMgr::getDefaultLeaseFilePath()
- uses CfgMgr::getDataDir()
Memfile_LeaseMgr::initLeaseFilePath()
- call CfgMgr::validatePath() without try-catch
Memfile_LeaseMgr::factory()
- log error and rethrow
/src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
Added use of EnvVarWrapper
/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
Updated tests
TEST_F(MemfileLeaseMgrTest, defaultDataDir)
TEST_F(MemfileLeaseMgrTest, dataDirEnvVarOverride)
TEST_F(MemfileLeaseMgrTest, dataDirExplicitOveride)
- new tests
/src/lib/testutils/Makefile.am
Added env_var_wrapper.*
2025-05-16 12:20:43 +03:00
Andrei Pavel
435d56b645
[ #3732 ] Switch docs from Autotools to Meson
2025-04-23 22:29:34 +03: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
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
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
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
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
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
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
Razvan Becheriu
d781e915cd
[ #3019 ] retry db open on startup
2023-12-14 08:01:42 +02: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
Piotrek Zadroga
8b7a7ea490
[ #2904 ] updating alias output-options in examples
2023-09-18 08:08:07 +00:00
Thomas Markwalder
f1523a6674
[ #2276 ] clean up
...
/doc/examples/kea4/all-keys.json
/doc/examples/kea6/all-keys.json
Commented out ddns-use-conflict-resolution
Added ddns-conflict-resolution-mode
/src/bin/dhcp4/dhcp4_parser.yy b/src/bin/dhcp4/dhcp4_parser.yy
/src/bin/dhcp4/dhcp4_parser.yy b/src/bin/dhcp6/dhcp6_parser.yy
Translates ddns-use-conflict-resolution
to ddns-conflict-resolution-mode
/src/lib/dhcpsrv/cfg_globals.cc
/src/lib/dhcpsrv/cfg_globals.h
Removed ddns-use-conflict-resolution
/src/lib/dhcpsrv/parsers/simple_parser4.cc
/src/lib/dhcpsrv/parsers/simple_parser6.cc
removed ddns-use-conflict-resolution
2023-07-06 14:27:25 +00: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
Francis Dupont
b168addec3
[ #2866 ] Updated server tests
2023-06-26 14:24:42 +02:00
Francis Dupont
823da39a90
[ #2866 ] Checkpoint: updated examples and arm
2023-06-26 14:24:42 +02:00
Razvan Becheriu
db4de1acae
[ #2898 ] addressed comments
2023-06-22 14:52:48 +00:00
Razvan Becheriu
be6c201a93
[ #2898 ] reverted mt19937_64 to mt19937
2023-06-22 14:52:48 +00:00
Razvan Becheriu
3d61bdde3e
[ #2898 ] fixed merge of stats for same pool IDs
2023-06-22 14:52:48 +00:00
Razvan Becheriu
6acc17aa10
[ #2898 ] add pool-id to yang models
2023-06-22 14:52:48 +00:00
Andrei Pavel
2181cef68d
[ #2832 ] add missing YANG nodes
...
- allocator
- ddns-ttl-percent
- exclude-first-last-24,
- ignore-dhcp-server-Identifier
- offer-lifetime
- pd-allocator
- read-timeout
- tcp-user-timeout
- write-timeout
Removed obsolete YANG nodes: contact-points, keyspace.
2023-05-16 15:38:17 +03:00
Razvan Becheriu
c056162c99
[ #2827 ] reverted src/share/api and updated script
2023-05-11 11:31:16 +03:00