2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 20:47:48 +00:00

80 Commits

Author SHA1 Message Date
Tomek Mrugalski
953ded7679 [5357] Stupid warning removed 2017-09-08 23:44:03 +02:00
Marcin Siodelski
82b0234ac7 [master] Added explicit to IOServiceWork to remove 2 cppcheck regressions.
This is trivial fix which I am committing on my discretion.
2017-07-05 18:23:14 +02:00
Marcin Siodelski
8531a65521 [master] Merge branch 'trac5318' 2017-07-05 16:32:14 +02:00
Francis Dupont
dd19455911 [master] Finishing merge of trac3389a (re-detect interfaces) 2017-07-05 14:52:54 +02:00
Marcin Siodelski
6f075ba71c [5318] Addressed review comments.
Also, when timeout occurs in control channel connection, all async tasks
are cancelled.
2017-07-05 14:18:57 +02:00
Marcin Siodelski
9bab1aae6d [5318] Default control connection timeout is now 10s. 2017-07-04 17:55:20 +02:00
Marcin Siodelski
82a6390bb6 [5318] Added unit tests for long connections in DHCPv6. 2017-07-03 17:47:12 +02:00
Marcin Siodelski
c932ebf8bc [5318] Implemented timeouts for CommandMgr. 2017-07-03 17:39:00 +02:00
Marcin Siodelski
e58169ee1a [5318] Improved the tests for long commands/responses. 2017-07-03 15:57:52 +02:00
Marcin Siodelski
ab11e2394e [5318] PoC for extending maximum request/response over 64k in Ctrl channel. 2017-07-03 12:01:18 +02:00
Marcin Siodelski
c7f86fdad0 [5317] Addressed review comments. 2017-06-30 15:23:04 +02:00
Marcin Siodelski
d913e9a739 [5317] Cleanup of the CommandMgr's code. 2017-06-22 18:35:05 +02:00
Marcin Siodelski
c4fb6001e7 [5317] Only a single control command connection is now allowed. 2017-06-22 13:39:19 +02:00
Marcin Siodelski
2688a2a886 [5317] Use poll() instead of run_one() in Ctrl DHCP server unit tests. 2017-06-22 12:15:40 +02:00
Marcin Siodelski
0ea522a291 [5317] Cleanup new code added to facilitate unix domain sockets. 2017-06-21 19:05:45 +02:00
Marcin Siodelski
7f14fd190e [5317] DHCPv4 server is using ASIO based CommandMgr. 2017-06-21 14:17:41 +02:00
Tomek Mrugalski
002e269071 [5187] Kea is less strict with filename argument to config-write 2017-04-18 20:37:11 +02:00
Francis Dupont
79b5468afa [5213] indent and untabily 2017-04-18 09:28:16 +02:00
Tomek Mrugalski
27cf2211cd [5213] config-reload implemented, set-config renamed to config-set 2017-04-14 13:51:51 +02:00
Tomek Mrugalski
ba1fa47b71 [5213] Unit-tests for config-reload implemented. 2017-04-13 15:48:35 +02:00
Tomek Mrugalski
59b3f2e97d [5213] set-config renamed to config-set, config-reload implemented
- removed obsolete kea_controller.cc (all code moved to ctrl_dhcp4_srv.cc)
2017-04-13 15:09:12 +02:00
Marcin Siodelski
5f47e18210 [5078] Corrected expected result in two unit tests. 2017-03-29 18:43:15 +02:00
Francis Dupont
5b8d7823cd [5150a] Merged review improvements 2017-03-21 19:50:07 +01:00
Francis Dupont
3ac8487a26 [5150a] Rebased 2017-03-17 06:31:35 +01:00
Francis Dupont
e38e8d974c [102b] rebased 2017-03-17 03:39:22 +01:00
Francis Dupont
d996bf25a1 [3389a] Commit before regen 2017-03-16 23:38:52 +01:00
Tomek Mrugalski
ffb2681173 [5151] Minor corrections after review:
- remove missed debug printout
 - using pretty print to write the file
 - correctly grammar in the guide
2017-03-16 14:25:29 +01:00
Francis Dupont
5cf8210811 [5151] Restored previous code in checkConfigWrite (no routine to parse full config) 2017-03-15 20:00:47 +01:00
Francis Dupont
3bd3068be8 [5151] Some small fixes 2017-03-15 18:59:07 +01:00
Tomek Mrugalski
1e5e7ef441 [5151] get-config, write-config renamed to config-get, config-write 2017-03-15 17:04:57 +01:00
Tomek Mrugalski
16deb5e4db [5151] get-config, write-config implemented 2017-03-14 21:06:56 +01:00
Tomek Mrugalski
d99048aa5b [master] Merge branch 'trac5076' (flex/bison for control agent) 2017-02-10 19:23:21 +01: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
Tomek Mrugalski
2c9ba565e1 [5076] decommentJSONFile moved to isc::test 2017-02-07 13:29:04 +01:00
Tomek Mrugalski
52158a480c [master] Unit-test fixes after #5122 and #5123 merged. 2017-01-28 12:01:23 +01:00
Tomek Mrugalski
44e812a308 [5122] Duplicate position printed in exceptions fixed 2017-01-27 21:39:45 +01:00
Tomek Mrugalski
523deee862 [5122] Contexts removed from SubnetConfigParser 2017-01-27 15:41:30 +01:00
Thomas Markwalder
4afbdcf89c [master] Implement set-config command in kea-dhcp4/6
Merges in branch 'trac5046'
2017-01-04 15:46:12 -05:00
Thomas Markwalder
ebb863e372 [5046] Addressed review comments
Added memfile without persistence to set_config unit tests. This eliminates
the tests attempting to create the csv file.

Updated copyrights.

Fixed misspelling.
2017-01-03 08:23:44 -05:00
Thomas Markwalder
d4d8665494 [master] kea-dhcp4/6 support libreload command
Merge branch 'trac3238'
2016-12-22 14:35:46 -05:00
Thomas Markwalder
e5a6c2b4f8 [5046] CommandMgr dups the connection socket prior to executing command
src/lib/config/command_mgr.cc
    CommandMgr::commandReader(int sockfd) - duplicates the connection
    socket to use for repsonding in case the command closes the channel.

src/lib/testutils/io_utils.cc
    fileExists() - now uses stat() function so one can use it on any
    type of file, like a unix socket

updated unit tests accordingly
2016-12-22 13:38:00 -05:00
Francis Dupont
a28938503f [5017] Some fixes (including a not yet detected error in classify CONFIG[0]) using parser 2016-12-17 01:05:26 +01:00
Thomas Markwalder
d9a6529871 [5046] Added set-config command handler test to dhcp4 unit tests 2016-12-16 11:02:04 -05:00
Andrei Pavel
9082500187 Corrected typos 2016-12-14 16:57:44 +02:00
Thomas Markwalder
6ea58aa99a [5046] Minor cleanups 2016-12-09 16:15:25 -05:00
Thomas Markwalder
44d38ce10a [5046] Implement set-config command in kea-dhcp4
Mirror the changes made in kea-dhcp6.
2016-12-09 16:08:24 -05:00
Thomas Markwalder
2659a1acbe [3238] Enabled libreload command
doc/guide/ctrl-channel.xml
    Added libreload to common command section

src/bin/dhcp4/ctrl_dhcp4_srv.cc
    Registered and deregistered libreload command

src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
    TEST_F(CtrlChannelDhcpv4SrvTest, libreload) - modified to
    test using CommandMgr instance

src/bin/dhcp6/ctrl_dhcp6_srv.cc
    Registered and deregistered libreload command

src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
    TEST_F(CtrlChannelDhcpv6SrvTest, libreload) - modified to
    test using CommandMgr instance
2016-11-22 14:09:22 -05:00
Tomek Mrugalski
e10309c77e [4297] Unit-tests updated after recent API change. 2016-03-09 18:59:06 +01:00
Marcin Siodelski
3d18318f68 [4236] Updated copyright dates in all files. 2015-12-16 15:28:44 +01:00
Marcin Siodelski
fe9dd86d20 [4236] Replaced license text in all files containing it. 2015-12-16 13:37:29 +01:00