]>
git.ipfire.org Git - thirdparty/kea.git/log
Tomek Mrugalski [Mon, 13 Aug 2018 17:12:38 +0000 (19:12 +0200)]
[github99] ChangeLog entries 1436-1441 restored, 1442 added.
Tomek Mrugalski [Mon, 13 Aug 2018 10:12:22 +0000 (12:12 +0200)]
[github99] compilation warning removed.
Sunil Kallukudige Sreedhar Mayya [Fri, 10 Aug 2018 20:00:44 +0000 (22:00 +0200)]
[optimize_query] fixed review comments
mayya [Sun, 22 Jul 2018 15:00:50 +0000 (17:00 +0200)]
[optimize_query] Add new index for query by DUID
Fixes #98
Tomek Mrugalski [Mon, 13 Aug 2018 15:54:23 +0000 (17:54 +0200)]
[github99] Temporarily removing entries to avoid merge errors.
Tomek Mrugalski [Mon, 13 Aug 2018 15:49:45 +0000 (17:49 +0200)]
[extend_host_struct] remove white space errors
cherry-picked commit
d8bfc574ba2bf8b982a46b947b03db5dd8f65922
by Mayya Sunil
mayya [Mon, 16 Jul 2018 21:55:03 +0000 (23:55 +0200)]
minor fixes
Tomek Mrugalski [Mon, 13 Aug 2018 15:47:53 +0000 (17:47 +0200)]
[gitlab9] Imported relevant bits from github99
- Covers changes up to
4358737d43ee1b6c8618a1a8aa3cc7273634ed48 ,
but without unnecessary things.
Marcin Siodelski [Mon, 13 Aug 2018 17:41:20 +0000 (19:41 +0200)]
[master] Added ChangeLog for issue #8.
Marcin Siodelski [Mon, 13 Aug 2018 17:38:35 +0000 (19:38 +0200)]
[gitlab8] Added log message indicating that the unix socket acceptor is opened.
Thomas Markwalder [Thu, 9 Aug 2018 14:51:46 +0000 (10:51 -0400)]
[master] Added ChangeLog entry 1440 for Trac #5704
Thomas Markwalder [Thu, 9 Aug 2018 14:44:45 +0000 (10:44 -0400)]
[master] Infrastructure for global host reserverations
- Internal representation of unused subnets is now SunbetID == SUBNET_ID_UNUSED
- Host Reservations with a subnet id value of SUBNET_ID_GLOBAL are global
- kea-dhcp4/6 servers can now parser reservations at the global level
Thomas Markwalder [Thu, 9 Aug 2018 13:22:43 +0000 (09:22 -0400)]
[5704] Addressed review comments
Updated config unit tests, rolled back eval/lexer.cc, etc...
Tomek Mrugalski [Thu, 9 Aug 2018 10:55:51 +0000 (12:55 +0200)]
[gitlab9] changelog updated
Tomek Mrugalski [Thu, 9 Aug 2018 10:37:18 +0000 (12:37 +0200)]
[gitlab9] doc updated, test renamed
Tomek Mrugalski [Thu, 9 Aug 2018 10:26:34 +0000 (12:26 +0200)]
[gitlab9] keactrl version command implemented
Tomek Mrugalski [Wed, 8 Aug 2018 13:08:43 +0000 (15:08 +0200)]
[gitlab9] Changes after review:
- man pages updated
- kea-admin help updated slightly.
Tomek Mrugalski [Fri, 6 Jul 2018 17:27:55 +0000 (19:27 +0200)]
[gitlab9] Keactrl now returns its version.
Tomek Mrugalski [Fri, 6 Jul 2018 17:21:46 +0000 (19:21 +0200)]
[gitlab9] kea-admin now reports its version.
Thomas Markwalder [Tue, 7 Aug 2018 10:46:30 +0000 (06:46 -0400)]
[5704] host backends and kea-dhcp4/6 support global HR storage
- Added constants for special SubnetIDs:
SUBNET_ID_GLOBAL, SUBNET_ID_MAX, SUBNET_ID_UNUSED
- Modified code throughout to use these constants, rather than hard-coded
values. Note, MySQL and PostgreSQL host backends convert from NULL to
UNUSED and back.
- kea-dhcp4/6 servers will now parse a "reservations" element at the global
level.
src/lib/dhcpsrv/subnet_id.h
Added constants SubnetID SUBNET_ID_GLOBAL, SUBNET_ID_MAX, SUBNET_ID_UNUSED
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/json_config_parser.cc
kea-dhcp4 parsing now handles reservations as a global element
src/bin/dhcp4/tests/config_parser_unittest.cc
TEST_F(Dhcp4ParserTest, globalReservations) - new test to
verify global HR parsing
src/bin/dhcp4/tests/dora_unittest.cc
src/lib/dhcpsrv/cfg_hosts.cc
src/lib/dhcpsrv/host.cc
src/lib/dhcpsrv/host_mgr.cc
src/lib/dhcpsrv/mysql_host_data_source.cc
src/lib/dhcpsrv/parsers/host_reservation_parser.cc
src/lib/dhcpsrv/tests/alloc_engine4_unittest.cc
src/lib/dhcpsrv/tests/alloc_engine_utils.cc
src/lib/dhcpsrv/tests/host_mgr_unittest.cc
src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc
src/lib/dhcpsrv/tests/host_reservations_list_parser_unittest.cc
src/lib/dhcpsrv/tests/host_unittest.cc
Replaced SubnetID 0 with SUBNET_ID_UNUSED
src/lib/dhcpsrv/srv_config.cc
SrvConfig::toElement() - added global reservations output
src/lib/dhcpsrv/tests/cfg_hosts_unittest.cc
TEST_F(CfgHostsTest, globalSubnetIDs)
TEST_F(CfgHostsTest, unusedSubnetIDs) - new tests
src/lib/dhcpsrv/tests/host_unittest.cc
Replaced SubnetID 0 with SUBNET_ID_UNUSED
TEST_F(HostTest, toText) - updated to verify global ID output
src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
TEST_F(MySqlHostDataSourceTest, globalSubnetId4)
TEST_F(MySqlHostDataSourceTest, globalSubnetId6) - new tests
src/lib/dhcpsrv/tests/srv_config_unittest.cc
TEST_F(SrvConfigTest, unparseHR) - added global HRs
src/lib/dhcpsrv/testutils/generic_host_data_source_unittest.*
GenericHostDataSourceTest::testGlobalSubnetId4()
GenericHostDataSourceTest::testGlobalSubnetId6()
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
src/bin/dhcp6/json_config_parser.cc
kea-dhcp6 now parses reservations as a global element
src/bin/dhcp6/tests/config_parser_unittest.cc
TEST_F(Dhcp6ParserTest, globalReservations) - new test
Thomas Markwalder [Thu, 2 Aug 2018 19:43:56 +0000 (15:43 -0400)]
[5704] Added subnet-id = 0 unit tests to host data sources
Added tests to verify backends support storing and fetching
reservations with either v4 or v6 subnet-id values of 0.
Tomek Mrugalski [Tue, 31 Jul 2018 17:18:15 +0000 (19:18 +0200)]
[master] ChangeLog update after #5683 merge.
Tomek Mrugalski [Tue, 31 Jul 2018 16:58:13 +0000 (18:58 +0200)]
[5683] if clause moved in Lease parsers
Thomas Markwalder [Tue, 31 Jul 2018 14:50:19 +0000 (10:50 -0400)]
[5683] Minor word-smithing
Tomek Mrugalski [Tue, 31 Jul 2018 13:25:38 +0000 (15:25 +0200)]
[5683] Corrected text to mention subnet-id = 0 case.
Tomek Mrugalski [Tue, 31 Jul 2018 13:23:16 +0000 (15:23 +0200)]
[5683] Doc updated.
Tomek Mrugalski [Tue, 31 Jul 2018 13:13:48 +0000 (15:13 +0200)]
[5683] subnet-id is now optional in subnetX-add, subnetX-update
Tomek Mrugalski [Mon, 30 Jul 2018 18:09:52 +0000 (20:09 +0200)]
[master] Changelog update after 5682 merge.
Tomek Mrugalski [Mon, 30 Jul 2018 17:02:47 +0000 (19:02 +0200)]
[5682] Added two missing log messages
Tomek Mrugalski [Mon, 30 Jul 2018 15:26:06 +0000 (17:26 +0200)]
[5682] Added extra tests for LeaseFileLoader
Tomek Mrugalski [Mon, 30 Jul 2018 14:32:01 +0000 (16:32 +0200)]
[5682] addLease() parameter is const again
Tomek Mrugalski [Mon, 30 Jul 2018 14:12:21 +0000 (16:12 +0200)]
[5682] SrvConfigTest.unparse fix
Tomek Mrugalski [Mon, 30 Jul 2018 13:02:45 +0000 (15:02 +0200)]
[5682] Changes after review:
- doc updated (no longer claims leaseX-add is covered, v6 is not
just a pointer anymore)
- removed calls from MemfileLeaseMgr::addLease
- removed unnecessary static calls
- removed no longer needed unit-tests
- wrote extra unit-tests for lease file loader
Tomek Mrugalski [Mon, 30 Jul 2018 12:20:30 +0000 (14:20 +0200)]
[5682] Revert "[5682] Corrective sanity checks implemented for leaseX-add"
This reverts commit
4d1462582ff4aa1ec663dba5d2dadedb7c0984ed .
Thomas Markwalder [Thu, 26 Jul 2018 20:11:58 +0000 (16:11 -0400)]
[5682] Added test that demonstrates broken lease update
Tomek Mrugalski [Thu, 26 Jul 2018 11:15:44 +0000 (13:15 +0200)]
[5682] Docs written
Tomek Mrugalski [Wed, 25 Jul 2018 23:36:49 +0000 (01:36 +0200)]
[5682] Parsers regenerated
Tomek Mrugalski [Wed, 25 Jul 2018 23:35:44 +0000 (01:35 +0200)]
[5682] Corrective sanity checks implemented for leaseX-add
Tomek Mrugalski [Wed, 25 Jul 2018 22:40:34 +0000 (00:40 +0200)]
[5682] config_get unit-tests regenerated.
Tomek Mrugalski [Wed, 25 Jul 2018 22:33:14 +0000 (00:33 +0200)]
[5682] Removed const from addLease for other lease backends.
Tomek Mrugalski [Wed, 25 Jul 2018 22:31:15 +0000 (00:31 +0200)]
[5682] Unit-tests written for lease file loader
Tomek Mrugalski [Wed, 25 Jul 2018 21:25:43 +0000 (23:25 +0200)]
[5682] get-config unit-test rebuilds partially automated.
Tomek Mrugalski [Wed, 25 Jul 2018 19:07:10 +0000 (21:07 +0200)]
[5682] sanity-checker can now use staging/current config, tests improved
Tomek Mrugalski [Wed, 25 Jul 2018 04:00:43 +0000 (06:00 +0200)]
[5682] Sanity checks unittests in libdhcpsrv are now working
Tomek Mrugalski [Tue, 24 Jul 2018 18:42:58 +0000 (20:42 +0200)]
[5682] Example configs added.
Tomek Mrugalski [Tue, 24 Jul 2018 18:42:04 +0000 (20:42 +0200)]
[5682] DHCP4, DHCP6 parsers extended to support sanity-checks
Tomek Mrugalski [Tue, 24 Jul 2018 18:41:07 +0000 (20:41 +0200)]
[5682] Consistency checks implemented in libdhcpsrv
Tomek Mrugalski [Fri, 27 Jul 2018 11:56:08 +0000 (13:56 +0200)]
[master] ChangeLog updated after 5680 merge.
Tomek Mrugalski [Fri, 27 Jul 2018 11:52:14 +0000 (13:52 +0200)]
[5680] Changes after review
Thomas Markwalder [Mon, 23 Jul 2018 11:55:56 +0000 (07:55 -0400)]
[5680] Updated kea admin guide
dhcp4-srv.xml
dhcp6-srv.xml
Added sections for host-name-sanitizing
Thomas Markwalder [Fri, 20 Jul 2018 16:11:00 +0000 (12:11 -0400)]
[5680] Use raw text from dns::Name to cope with escape sequences
src/lib/dhcpsrv/d2_client_mgr.h
D2ClientMgr::adjustDomainName() - modified to start with
raw text domain name, this allows us to cope with escape
sequences
src/lib/dhcpsrv/tests/d2_client_unittest.cc
Updated unit tests
Thomas Markwalder [Fri, 20 Jul 2018 15:21:23 +0000 (11:21 -0400)]
[5680] Add ability to fetch unescaped string from dns::Name
src/lib/dns/labelsequence.cc
src/lib/dns/labelsequence.h
Added LabelSequence::toRawText()
src/lib/dns/name.cc
src/lib/dns/name.h
Added Name::toRawText() and LabelSequence::toRawText()
src/lib/dns/tests/labelsequence_unittest.cc
src/lib/dns/tests/name_unittest.cc
Added unit tests
Thomas Markwalder [Thu, 19 Jul 2018 20:06:29 +0000 (16:06 -0400)]
[5680] Added unit tests to verify kea-dhcp6 santizes FQDN values
modified: src/bin/dhcp6/tests/fqdn_unittest.cc
Thomas Markwalder [Thu, 19 Jul 2018 19:36:30 +0000 (15:36 -0400)]
[5680] kea-dhcp4 supports client FQDN name sanitizing
src/lib/dhcpsrv/d2_client_mgr.h
D2ClientMgr::adjustDomainName() - added logic to
sanitize the inbound FQDN name when configured to do so
src/lib/dhcpsrv/tests/d2_client_unittest.cc
TEST(D2ClientMgr, sanitizeFqdnV4)
TEST(D2ClientMgr, sanitizeFqdnV6) - new tests
src/bin/dhcp4/tests/fqdn_unittest.cc
TEST_F(NameDhcpv4SrvTest, sanitizeFqdn) - new test
Thomas Markwalder [Tue, 10 Jul 2018 19:32:57 +0000 (15:32 -0400)]
[5680] User guide updated with new params
doc/guide/dhcp4-srv.xml
Added discussion of new params to Dhcp4/dhcp-ddns section
src/lib/dhcpsrv/d2_client_cfg.h
fixed missing params doxygen error
Thomas Markwalder [Tue, 10 Jul 2018 17:31:49 +0000 (13:31 -0400)]
[5680] kea-dhcp4 now uses hostname sanititzer when configured for it
src/bin/dhcp4/dhcp4_srv.cc
Dhcpv4Srv::processHostnameOption() - sanitizes client hostname
if configured to do so
src/bin/dhcp4/tests/fqdn_unittest.cc
TEST_F(NameDhcpv4SrvTest, sanitizeHostname) - new test to
verify hostname sanitizing works as expected
src/lib/dhcpsrv/d2_client_cfg.h
D2ClientConfig::getHostnameSanitizer() added missing getter
src/lib/dhcpsrv/tests/d2_client_unittest.cc
TEST(D2ClientConfigTest, constructorsAndAccessors) - updated to
verify hostname sanitizing stuff
src/lib/util/strutil.cc
fixed regex compilation issue
Thomas Markwalder [Tue, 10 Jul 2018 14:48:09 +0000 (10:48 -0400)]
[5680] Refactor stringSanitizer func into StringSanitizer class
modified:
src/lib/dhcpsrv/d2_client_cfg.cc
src/lib/dhcpsrv/d2_client_cfg.h
src/lib/util/strutil.cc
src/lib/util/strutil.h
src/lib/util/tests/strutil_unittest.cc
Thomas Markwalder [Mon, 9 Jul 2018 17:36:06 +0000 (13:36 -0400)]
[5680] kea-dhcp4/6 now parse hostname-char-set and hostname-char-replacment params
Added to parsing and parsing unit tests.
Servers do not yet utilize the values.
Modified:
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
src/bin/dhcp4/tests/get_config_unittest.
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
src/bin/dhcp6/tests/config_parser_unittest.cc
src/bin/dhcp6/tests/fqdn_unittest.cc
src/bin/dhcp6/tests/get_config_unittest.
Thomas Markwalder [Mon, 9 Jul 2018 14:11:40 +0000 (10:11 -0400)]
[5680] Added support for D2 client hostname sanitizer parms to dhcpsrv lib
src/lib/dhcpsrv/d2_client_cfg.*
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
src/lib/dhcpsrv/tests/d2_client_unittest.cc
src/lib/dhcpsrv/tests/d2_udp_unittest.cc
Added defaults and handling for new params,
hostname-char-set and hostname-char-replacement
Thomas Markwalder [Fri, 6 Jul 2018 18:48:41 +0000 (14:48 -0400)]
[5680] Added a couple more unit test cases
Thomas Markwalder [Fri, 6 Jul 2018 17:14:05 +0000 (13:14 -0400)]
[5680] Added sanitizeString() function to libutil
configure.ac
Added logic to detect usable C++11 regex
src/lib/util/strutil.*
sanitizeString() - new function that replaces all
occurances of invalid chars in a string with a
specified replacement
src/lib/util/tests/strutil_unittest.cc
TEST(StringUtilTest, sanitizeString) - new test
Marcin Siodelski [Tue, 24 Jul 2018 09:39:30 +0000 (11:39 +0200)]
[master] Added ChangeLog entry for #5675.
Marcin Siodelski [Tue, 24 Jul 2018 09:38:10 +0000 (11:38 +0200)]
[master] Merge branch 'trac5675'
Marcin Siodelski [Tue, 24 Jul 2018 09:01:43 +0000 (11:01 +0200)]
[5675] Added note to the HA users guide.
Tomek Mrugalski [Mon, 23 Jul 2018 14:07:03 +0000 (16:07 +0200)]
[master] ChangeLog updated.
Tomek Mrugalski [Mon, 23 Jul 2018 14:04:55 +0000 (16:04 +0200)]
[github88] Wrapped too long lines.
Tomek Mrugalski [Mon, 23 Jul 2018 14:04:30 +0000 (16:04 +0200)]
[github88] Removed remaining instances of getLeases6(DUID)
Tomek Mrugalski [Mon, 23 Jul 2018 14:03:40 +0000 (16:03 +0200)]
[github88] CQL/SQL scripts corrected (unit-tests in src/bin/admin now pass)
Thomas Markwalder [Mon, 23 Jul 2018 13:21:40 +0000 (09:21 -0400)]
[5675] Added a "the" to admin guide
Tomek Mrugalski [Mon, 23 Jul 2018 12:36:10 +0000 (14:36 +0200)]
[github88] getLeases6(DUID) removed.
Tomek Mrugalski [Mon, 23 Jul 2018 12:35:48 +0000 (14:35 +0200)]
[github88] Schema creation scripts fixed.
mayya [Mon, 16 Jul 2018 21:55:03 +0000 (23:55 +0200)]
[extend_host_struct] Fix review comments
mayya [Mon, 16 Jul 2018 21:53:29 +0000 (23:53 +0200)]
fixed minor issues
mayya [Sun, 15 Jul 2018 13:32:33 +0000 (15:32 +0200)]
review comments 2
review comments 2
test1
fixed unit tests
fixed cassandra
fixed cassandra2
mayya [Sat, 7 Jul 2018 07:39:09 +0000 (09:39 +0200)]
[lib] Address review comments for #83
See #88 for review comments
modified upgrade files
modified tests
mayya [Sun, 10 Jun 2018 16:45:34 +0000 (18:45 +0200)]
[lib] Extend host structure to support auth keys for reconfiguration.
See issue #83
Marcin Siodelski [Thu, 19 Jul 2018 13:23:51 +0000 (15:23 +0200)]
[5675] Resolve the problem of no logging paused state in waiting state.
Marcin Siodelski [Thu, 19 Jul 2018 11:45:12 +0000 (13:45 +0200)]
[5675] Corrected documentation of the HA according to recent config change.
Marcin Siodelski [Wed, 18 Jul 2018 16:05:22 +0000 (18:05 +0200)]
[5675] Corrected unit test about the rebase to latest #5674.
Marcin Siodelski [Thu, 12 Jul 2018 15:55:27 +0000 (17:55 +0200)]
[5675] Described HA state machine pausing.
Marcin Siodelski [Wed, 11 Jul 2018 16:31:27 +0000 (18:31 +0200)]
[5675] Added ha-continue command handler.
Marcin Siodelski [Wed, 11 Jul 2018 16:13:31 +0000 (18:13 +0200)]
[5675] Implemented ha-continue command handler.
Marcin Siodelski [Wed, 18 Jul 2018 16:58:08 +0000 (18:58 +0200)]
[master] Added ChangeLog for #5674.
Marcin Siodelski [Wed, 18 Jul 2018 16:56:40 +0000 (18:56 +0200)]
[master] Merge branch 'trac5674'
Marcin Siodelski [Wed, 18 Jul 2018 14:51:13 +0000 (16:51 +0200)]
[5674] Use pausing capability of StateModel in HA library.
Marcin Siodelski [Wed, 18 Jul 2018 14:17:05 +0000 (16:17 +0200)]
[5674] Implemented state model pausing.
Marcin Siodelski [Wed, 18 Jul 2018 11:40:21 +0000 (13:40 +0200)]
[5674] Verify that heartbeat is sent when SM is paused.
Marcin Siodelski [Wed, 18 Jul 2018 11:31:10 +0000 (13:31 +0200)]
[5674] State machine pausing dealt with in transition.
Marcin Siodelski [Wed, 18 Jul 2018 10:28:42 +0000 (12:28 +0200)]
[5674] Added extra level of hierarchy in state machine configuration.
Per review comments.
Tomek Mrugalski [Thu, 12 Jul 2018 12:51:56 +0000 (14:51 +0200)]
[github93] Added changelog entry, AUTHORS updated.
Tomek Mrugalski [Thu, 12 Jul 2018 12:48:12 +0000 (14:48 +0200)]
[github93] Changes after review:
- added missing unit-tests, fixed bugs, small tweaks.
Tomek Mrugalski [Thu, 12 Jul 2018 10:07:44 +0000 (12:07 +0200)]
Merge branch 'auth_option' of https://github.com/MayyaSunil/kea into github93
Marcin Siodelski [Wed, 11 Jul 2018 12:56:23 +0000 (14:56 +0200)]
[5674] Pause in terminated and backup state.
Marcin Siodelski [Wed, 11 Jul 2018 12:37:17 +0000 (14:37 +0200)]
[5674] Added logs when state machine (un)paused.
Marcin Siodelski [Wed, 11 Jul 2018 12:13:50 +0000 (14:13 +0200)]
[5674] State machine pausing in syncing state.
Marcin Siodelski [Tue, 10 Jul 2018 15:44:49 +0000 (17:44 +0200)]
[5674] Implemented HA pause for ordinary states.
Currently it excludes terminated and syncing states.
Marcin Siodelski [Tue, 10 Jul 2018 14:39:45 +0000 (16:39 +0200)]
[5674] Implement state machine control for HA.
Francis Dupont [Tue, 10 Jul 2018 12:11:43 +0000 (14:11 +0200)]
Merged gitlab/master
Marcin Siodelski [Tue, 10 Jul 2018 09:51:54 +0000 (11:51 +0200)]
[5674] Implemented HA state machine configuration.
Marcin Siodelski [Mon, 9 Jul 2018 12:56:56 +0000 (14:56 +0200)]
[master] Added ChangeLog entry for #5651.