]>
git.ipfire.org Git - thirdparty/kea.git/log
Tomek Mrugalski [Wed, 16 May 2018 18:17:07 +0000 (20:17 +0200)]
[5521] Missing config.h includes added
Marcin Siodelski [Wed, 16 May 2018 16:27:40 +0000 (18:27 +0200)]
[master] Do not use std::rand in long response unit test.
It gives unpredictable results on OpenBSD. Okayed on jabber.
Francis Dupont [Wed, 16 May 2018 14:53:29 +0000 (16:53 +0200)]
[master] Merged trac5617 (RADIUS reselect subnet)
Francis Dupont [Wed, 16 May 2018 14:43:06 +0000 (16:43 +0200)]
[5617] Removed spurious module files
Marcin Siodelski [Wed, 16 May 2018 14:42:15 +0000 (16:42 +0200)]
[master] Fixed race in the Observation test.
Okayed on jabber.
Francis Dupont [Wed, 16 May 2018 14:41:02 +0000 (16:41 +0200)]
[5617] re-select -> reselect (according to Thomas and his dict)
Tomek Mrugalski [Wed, 16 May 2018 14:20:01 +0000 (16:20 +0200)]
Merge branch 'master' of ssh://git.kea.isc.org/git/kea
# Conflicts:
# ChangeLog
Tomek Mrugalski [Wed, 16 May 2018 14:18:38 +0000 (16:18 +0200)]
[master] ChangeLog updated.
Thomas Markwalder [Wed, 16 May 2018 14:14:58 +0000 (10:14 -0400)]
[master] Added ChangeLog entry 1401 for #5564
Thomas Markwalder [Wed, 16 May 2018 14:12:57 +0000 (10:12 -0400)]
[master] Kea servers discard packets before reconfig and exit
Merge branch 'trac5564'
Francis Dupont [Wed, 16 May 2018 13:51:36 +0000 (15:51 +0200)]
[5617] Updated doc and example
Tomek Mrugalski [Wed, 16 May 2018 13:47:16 +0000 (15:47 +0200)]
[5577] Changes after review:
- copyright updated
- ensureHookLibsVectorSize is now private
- methods renamed as suggested by Marcin
Tomek Mrugalski [Wed, 16 May 2018 11:56:17 +0000 (13:56 +0200)]
[5577] Improved the fix, added unit-test.
Francis Dupont [Sat, 31 Mar 2018 16:48:38 +0000 (18:48 +0200)]
[5577] Another case of out-of-bound access
Francis Dupont [Mon, 26 Mar 2018 16:51:16 +0000 (18:51 +0200)]
[5577] Fixed out of bound bug
Thomas Markwalder [Wed, 16 May 2018 13:44:16 +0000 (09:44 -0400)]
[master] Added ChangeLog 1400 for #5589.
Thomas Markwalder [Wed, 16 May 2018 13:41:58 +0000 (09:41 -0400)]
[master] Added new Stat Cmds hooks lib to open source repo
Merge branch 'trac5589'
Thomas Markwalder [Wed, 16 May 2018 13:10:11 +0000 (09:10 -0400)]
[master] Added ChangeLog entry 1399 for #5588.
Thomas Markwalder [Wed, 16 May 2018 13:06:42 +0000 (09:06 -0400)]
[master] CQL backend supports lease stat queries with where clauses
Merge branch 'trac5588'
Tomek Mrugalski [Wed, 16 May 2018 12:42:55 +0000 (14:42 +0200)]
[5564] Changes after review:
- dumpPackets renamed to discardPackets
- added missing comments
Marcin Siodelski [Wed, 16 May 2018 12:27:19 +0000 (14:27 +0200)]
[master] Added ChangeLog entry for #5515.
Marcin Siodelski [Wed, 16 May 2018 12:20:59 +0000 (14:20 +0200)]
[master] Merge branch 'trac5515a'
Francis Dupont [Tue, 6 Mar 2018 16:31:41 +0000 (17:31 +0100)]
[5515] Fixed adjustIfaceDataUseRouting unit test
Francis Dupont [Fri, 26 Jan 2018 10:50:55 +0000 (11:50 +0100)]
[5515] Fixed the bug
Thomas Markwalder [Wed, 16 May 2018 11:27:01 +0000 (07:27 -0400)]
[5589] Addressed more review comments
doc/guide/hooks-stat-cmds.xml
Fixed return values
doc/guide/logging.xml
Added entry for kea-dhcp6.stat-cmds-hooks logger
src/hooks/dhcp/stat_cmds/stat_cmds_messages.mes
src/hooks/dhcp/stat_cmds/stat_cmds_callouts.cc
Removed extra _CMDS from logger IDs
src/hooks/dhcp/stat_cmds/tests/stat_cmds_unittest.cc
Removed extraneous using statement;
Marcin Siodelski [Wed, 16 May 2018 11:13:37 +0000 (13:13 +0200)]
[master] Added ChangeLog for #5620.
Also, corrected whitespaces in the preceding entry.
Marcin Siodelski [Wed, 16 May 2018 10:58:28 +0000 (12:58 +0200)]
[master] Merge branch 'trac5620'
Marcin Siodelski [Wed, 16 May 2018 10:49:52 +0000 (12:49 +0200)]
[5589] Minor docs corrections as a result of second review.
Marcin Siodelski [Wed, 16 May 2018 10:04:02 +0000 (12:04 +0200)]
[5588] Updated some doxygen for CQL as a result of review.
Thomas Markwalder [Tue, 15 May 2018 19:56:18 +0000 (15:56 -0400)]
[5564] Servers dump cached and parked packets on reconfig and shutdown
src/bin/dhcp4/dhcp4_srv.*
- dumpPackets() - new function that frees all cached and parked packets
- Dhcpv4Srv::~Dhcpv4Srv() - added call to dumpPackets() for cleanliness
src/bin/dhcp4/json_config_parser.cc
configureDhcp4Server() - added a call Dhcpv4Srv::dumpPackets()
src/bin/dhcp6/dhcp6_srv.*
- dumpPackets() - new function that frees all cached and parked packets
- Dhcpv6Srv::~Dhcpv6Srv() - added call to dumpPackets() for cleanliness
src/bin/dhcp6/json_config_parser.cc
configureDhcp6Server() - added a call Dhcpv6Srv::dumpPackets()
src/lib/hooks/hooks_manager.h
- clearParkingLots() - new convenience function for clearing
all parking lots
- clearParkingLotsInternal() - private impl of the above
Thomas Markwalder [Tue, 15 May 2018 18:01:34 +0000 (14:01 -0400)]
[5589] Added todo in unit test.
Thomas Markwalder [Tue, 15 May 2018 17:33:50 +0000 (13:33 -0400)]
[5589] Addressed review comments except for unit tests not loading library
Too numerous to mention.
Marcin Siodelski [Tue, 15 May 2018 11:33:44 +0000 (13:33 +0200)]
[5589] Fix some little typos as a result of review.
Marcin Siodelski [Tue, 15 May 2018 11:33:26 +0000 (13:33 +0200)]
[5589] Updated XML corrections to the hooks-stats-lib doc.
Marcin Siodelski [Mon, 14 May 2018 14:59:16 +0000 (16:59 +0200)]
[5620] Http client uses stripped IPv6 address.
Thomas Markwalder [Mon, 14 May 2018 14:21:41 +0000 (10:21 -0400)]
[5589] Added leases to unit tests
src/hooks/dhcp/stat_cmds/tests/stat_cmds_unittest.cc
Added leases and PDs to unit tests
src/hooks/dhcp/stat_cmds/stat_cmds.cc
Fixed loop logic in makeResult6()
Marcin Siodelski [Mon, 14 May 2018 14:18:38 +0000 (16:18 +0200)]
[5620] Added Url method for retrieving stripped hostname
Thomas Markwalder [Mon, 14 May 2018 11:32:06 +0000 (07:32 -0400)]
[5580] Added developor and admin doc
Tomek Mrugalski [Mon, 14 May 2018 10:57:40 +0000 (12:57 +0200)]
[master] Corrected examples for lease4-wipe (comment fix)
Francis Dupont [Sat, 12 May 2018 11:39:28 +0000 (13:39 +0200)]
[master] Removed unused num_subnets
Francis Dupont [Sat, 12 May 2018 10:23:47 +0000 (12:23 +0200)]
[master] Merge branch 'master' of ssh://git.kea.isc.org/git/kea
Francis Dupont [Sat, 12 May 2018 10:22:12 +0000 (12:22 +0200)]
[master] assignIA_PD does not use answer
Francis Dupont [Fri, 11 May 2018 14:35:04 +0000 (16:35 +0200)]
[5617] Moved selector init to library
Thomas Markwalder [Fri, 11 May 2018 14:26:21 +0000 (10:26 -0400)]
[master] Added ChangeLog entries 1395 and 1396 for 5586 and 5587 respectively
Thomas Markwalder [Fri, 11 May 2018 14:24:30 +0000 (10:24 -0400)]
[master] PostgreSQL support for shared lease stats implemented
Merge branch 'trac5587'
Thomas Markwalder [Fri, 11 May 2018 10:47:43 +0000 (06:47 -0400)]
[5587] Fixed a typo per review comment
Marcin Siodelski [Thu, 10 May 2018 16:57:15 +0000 (18:57 +0200)]
[master] Merge branch 'trac5565'
Marcin Siodelski [Thu, 10 May 2018 16:43:59 +0000 (18:43 +0200)]
[master] Added ChangeLog entry for #5478.
Marcin Siodelski [Thu, 10 May 2018 16:10:58 +0000 (18:10 +0200)]
[master] Merge branch 'trac5478a'
Marcin Siodelski [Thu, 10 May 2018 14:35:52 +0000 (16:35 +0200)]
[5478] Added example HA configuration for DHCPv6.
Marcin Siodelski [Thu, 10 May 2018 14:22:16 +0000 (16:22 +0200)]
[5478] Added example for the load balancing in DHCPv4.
Marcin Siodelski [Thu, 10 May 2018 13:54:18 +0000 (15:54 +0200)]
[5478] Timers in HA configuration are in milliseconds.
Marcin Siodelski [Thu, 10 May 2018 11:32:12 +0000 (13:32 +0200)]
[5478] Added section about sending lease updates setting.
Marcin Siodelski [Thu, 10 May 2018 11:10:45 +0000 (13:10 +0200)]
[5478] Documented default value of auto-failover.
Marcin Siodelski [Thu, 10 May 2018 11:08:03 +0000 (13:08 +0200)]
[5478] Added a section about transitioning between the servers.
Marcin Siodelski [Thu, 10 May 2018 10:02:52 +0000 (12:02 +0200)]
[5478] Addressed most of the review comments.
Focusing on minor additions and corrections.
Marcin Siodelski [Wed, 9 May 2018 15:17:44 +0000 (17:17 +0200)]
[5478] Minor updates to libdhcp_ha.so brief description.
Marcin Siodelski [Wed, 9 May 2018 15:13:14 +0000 (17:13 +0200)]
[5478] High Availability lib section moved to another xml file.
Tomek Mrugalski [Tue, 8 May 2018 14:20:33 +0000 (16:20 +0200)]
[5478] Changes after review:
- HA lib description updated
- wrote extra text about IETF failover
- couple other small nits
Marcin Siodelski [Thu, 12 Apr 2018 16:18:01 +0000 (18:18 +0200)]
[5478] Provided HA + advanced classification example.
Marcin Siodelski [Tue, 10 Apr 2018 09:33:32 +0000 (11:33 +0200)]
[5478] Default configuration values documented.
Marcin Siodelski [Tue, 10 Apr 2018 09:02:46 +0000 (11:02 +0200)]
[5478] Described HA specific commands.
Marcin Siodelski [Tue, 10 Apr 2018 07:51:24 +0000 (09:51 +0200)]
[5478] Added User's Guide section with CA configuration for HA.
Marcin Siodelski [Mon, 9 Apr 2018 16:52:09 +0000 (18:52 +0200)]
[5478] Described hot-standby configuration in the User's Guide.
Marcin Siodelski [Mon, 9 Apr 2018 09:53:40 +0000 (11:53 +0200)]
[5478] Load balancing configuration described.
Marcin Siodelski [Thu, 5 Apr 2018 11:30:48 +0000 (13:30 +0200)]
[5478] Initial documentation for the HA hook library.
Thomas Markwalder [Wed, 9 May 2018 20:00:10 +0000 (16:00 -0400)]
[5589] Initial checkin
New stat_cmds hook library initial commit.
Both stat-lease4/6-get commands implemented and unit tested
modified:
configure.ac
src/hooks/dhcp/Makefile.am
new:
src/hooks/dhcp/stat_cmds/.gitignore
src/hooks/dhcp/stat_cmds/Makefile.am
src/hooks/dhcp/stat_cmds/stat_cmds.cc
src/hooks/dhcp/stat_cmds/stat_cmds.dox
src/hooks/dhcp/stat_cmds/stat_cmds.h
src/hooks/dhcp/stat_cmds/stat_cmds_callouts.cc
src/hooks/dhcp/stat_cmds/stat_cmds_log.cc
src/hooks/dhcp/stat_cmds/stat_cmds_log.h
src/hooks/dhcp/stat_cmds/stat_cmds_messages.mes
src/hooks/dhcp/stat_cmds/tests/.gitignore
src/hooks/dhcp/stat_cmds/tests/Makefile.am
src/hooks/dhcp/stat_cmds/tests/run_unittests.cc
src/hooks/dhcp/stat_cmds/tests/stat_cmds_unittest.cc
src/hooks/dhcp/stat_cmds/version.cc
Thomas Markwalder [Wed, 9 May 2018 19:18:49 +0000 (15:18 -0400)]
[5588] Cassandra shared lease stats support implemented
Note this impl is done with calculate-on-demand SQL
statements rather than stat tables pluse triggers.
src/lib/dhcpsrv/cql_lease_mgr.*
Added new SQL statements for lease stats queries
CqlLeaseStatsQuery
Constructors - added variants to support where clause params
start() - modified to support query variants based
on where clause params
CqlSqlLeaseMgr
Added start variants:
- startSubnetLeaseStatsQuery4(const SubnetID& subnet_id)
- startSubnetRangeLeaseStatsQuery4(const SubnetID& first_subnet_id,
const SubnetID& last_subnet_id)
src/lib/dhcpsrv/tests/cql_lease_mgr_unittest.cc
New unit tests:
- TEST_F(CqlLeaseMgrTest, leaseStatsQuery4)
- TEST_F(CqlLeaseMgrTest, leaseStatsQuery6)
Thomas Markwalder [Wed, 9 May 2018 18:36:37 +0000 (14:36 -0400)]
[5587] PostgreSQL support for shared lease stats implementation
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Adds lease<4/6>_stat tables and triggers
src/share/database/scripts/pgsql/dhcpdb_drop.pgsql
Added drops for lease<4/6>_stat tables and triggers
src/share/database/scripts/pgsql/upgrade_3.3_to_4.0.sh.in
Adds lease<4/6>_stat tables and triggers
Populates stat tables from existing lease table content
src/bin/admin/tests/mysql_tests.sh.in
mysql_lease6_stat_per_type() - fixed typo in test
src/bin/admin/tests/pgsql_tests.sh.in
run_statement() - new convenience fucntion for
running statement with option expected outcome
pgsql_upgrade_schema_to_version() - new function
which converts the existing schema to a target version
pgsql_lease4_stat_test() - tests v4 stat table and
triggers in an new database
pgsql_lease6_stat_test() - tests v6 stat table and
triggers in an new database.
pgsql_lease6_stat_per_type() - helper function which
tests v6 stat table and triggers using a given address
and lease type
pgsql_lease_stat_upgrade_test() - tests data migration,
stat table and trigger operations on an upgraded database
src/lib/dhcpsrv/pgsql_lease_mgr.*
Added new SQL statements for lease stats queries
PgSqlLeaseStatsQuery
Constructors - added variants to support where clause params
start() - modified to support query variants based
on where clause params
PgSqlLeaseMgr
Added start variants:
- startSubnetLeaseStatsQuery4(const SubnetID& subnet_id)
- startSubnetRangeLeaseStatsQuery4(const SubnetID& first_subnet_id,
const SubnetID& last_subnet_id)
src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
New unit tests:
- TEST_F(PgSqlLeaseMgrTest, leaseStatsQuery4)
- TEST_F(PgSqlLeaseMgrTest, leaseStatsQuery6)
Thomas Markwalder [Wed, 9 May 2018 15:19:54 +0000 (11:19 -0400)]
[master] MySQL support for shared lease stats implemented
Merge branch 'trac5586'
Thomas Markwalder [Wed, 9 May 2018 13:52:54 +0000 (09:52 -0400)]
[5586] Addressed further review comments
src/bin/admin/tests/dhcpdb_create_5.1.mysql - deleted
src/bin/admin/tests/mysql_tests.sh.in
mysql_upgrade_schema_to_version() - new function which
upgrades an existing schema to a target version
mysql_lease_stat_upgrade_test() - modified to start with
1.0 schema and then use new function to upgrade to 4.0
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
mysql_lease_mgr_unittest.cc
Added condition compilation around INVALID_HOST scenario
that causes db connectivity tests to fail
Marcin Siodelski [Wed, 9 May 2018 12:53:33 +0000 (14:53 +0200)]
[master] Added ChangeLog for #5590.
Marcin Siodelski [Wed, 9 May 2018 12:43:21 +0000 (14:43 +0200)]
[master] Merge branch 'trac5590'
Francis Dupont [Wed, 9 May 2018 10:28:17 +0000 (12:28 +0200)]
[master] Merged trac5609 (more DHCPv6 park unit tests)
Thomas Markwalder [Tue, 8 May 2018 19:53:11 +0000 (15:53 -0400)]
[5586] Restored compiled out unit test
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
Thomas Markwalder [Tue, 8 May 2018 18:41:40 +0000 (14:41 -0400)]
[5586] Added schema unit tests
src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
Added SQL statements to populate lease4/6_stat tables
from existing lease table content.
src/bin/admin/tests/dhcpdb_create_5.1.mysql
New file used for upgrade testing
src/bin/admin/tests/mysql_tests.sh.in
run_statement() - new convenience function for running SQL
statements with an optional expected return value
mysql_lease4_stat_test() - verifies lease4_stat
table and trigger operations on a new database
mysql_lease6_stat_test()
mysql_lease6_stat_per_type() - new functions
which lease6_stat table and trigger operations
on a new database
mysql_lease_stat_upgrade_test() - new function
which verifies data migration from an earlier
schema and trigger operation
Marcin Siodelski [Tue, 8 May 2018 11:05:48 +0000 (13:05 +0200)]
[5590] Bumped up library version numbers for beta release.
Marcin Siodelski [Tue, 8 May 2018 09:05:00 +0000 (11:05 +0200)]
[5590] Updated included headers for dhcpsrv library.
Marcin Siodelski [Tue, 8 May 2018 08:58:17 +0000 (10:58 +0200)]
[5590] Updated included headers in hooks library.
Marcin Siodelski [Tue, 8 May 2018 08:56:44 +0000 (10:56 +0200)]
[5590] Updated included headers in http library.
Marcin Siodelski [Tue, 8 May 2018 08:01:16 +0000 (10:01 +0200)]
[5609] Several minor fixes as a result of the review.
- Two clients share server instance in leases6_committed tests.
- Updated some of the test descriptions.
Francis Dupont [Mon, 7 May 2018 16:18:36 +0000 (18:18 +0200)]
[master] Merged trac5605a (RADIUS fixes - selectSubnet4 sanity_only)
Francis Dupont [Mon, 7 May 2018 16:16:05 +0000 (18:16 +0200)]
[5605a] cleanup
Tomek Mrugalski [Mon, 7 May 2018 15:25:17 +0000 (17:25 +0200)]
[5605a] Minor changes after review:
- comments added
Marcin Siodelski [Mon, 7 May 2018 14:13:00 +0000 (16:13 +0200)]
[5586] Corrected some little typos as a result of review.
Francis Dupont [Mon, 7 May 2018 13:08:14 +0000 (15:08 +0200)]
[5609] Added tests
Marcin Siodelski [Mon, 7 May 2018 11:18:37 +0000 (13:18 +0200)]
[5565] Updated CalloutHandleStore to store multiple hanles.
Francis Dupont [Sun, 6 May 2018 08:35:58 +0000 (10:35 +0200)]
[5605a] Made extract DUID false for accounting
Francis Dupont [Wed, 2 May 2018 22:40:51 +0000 (00:40 +0200)]
[5605a] [5608] Fixed example and guide
Tomek Mrugalski [Tue, 1 May 2018 22:40:28 +0000 (23:40 +0100)]
[5605a] Resolved cherry-pick conflicts
Tomek Mrugalski [Tue, 1 May 2018 22:32:59 +0000 (23:32 +0100)]
[5605a] [5608] Added example for sending extra Attributes.
Francis Dupont [Wed, 2 May 2018 20:00:34 +0000 (22:00 +0200)]
[5605a] Added a sanity_only flag to selectSubnet*
Francis Dupont [Wed, 2 May 2018 19:40:12 +0000 (21:40 +0200)]
[5605a] Removed Password attribute for accounting
Thomas Markwalder [Wed, 2 May 2018 17:36:02 +0000 (13:36 -0400)]
[5586] MySQL shared leases stats implemented
src/share/database/scripts/mysql/dhcpdb_create.mysql
src/share/database/scripts/mysql/dhcpdb_drop.mysql
src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
Added MySQL v4/6 stat tables and triggers
src/lib/dhcpsrv/memfile_lease_mgr.cc
Suppress output of of rows with count values of 0
src/lib/dhcpsrv/mysql_lease_mgr.*
Added v4/v6 lease stat SQL statements
MySqlLeaseStatsQuery
- Added ctor variants that accomodate selection criteria
- Modified start() to handle three variants of selection
MySqlLeaseMgr
- Added start***Query4/6 variants
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
Added tests:
- TEST_F(MySqlLeaseMgrTest, leaseStatsQuery4)
- TEST_F(MySqlLeaseMgrTest, leaseStatsQuery6)
Thomas Markwalder [Wed, 2 May 2018 15:17:20 +0000 (11:17 -0400)]
[master] Shared lease stats infrastructure and MemfileLeaseMgr implementation
Merges branch 'trac5585'
Marcin Siodelski [Wed, 2 May 2018 14:21:47 +0000 (16:21 +0200)]
[5585] Minor fixes as a result of the review.
- Adjusted accessors to fit the coding style
- Typos corrected
- Passing objects by reference to avoid cppcheck complaints
Marcin Siodelski [Wed, 2 May 2018 13:17:53 +0000 (15:17 +0200)]
[master] Added ChangeLog entry for #5458.
Marcin Siodelski [Wed, 2 May 2018 12:41:40 +0000 (14:41 +0200)]
[master] Merge branch 'trac5458a'
Francis Dupont [Tue, 1 May 2018 23:48:46 +0000 (01:48 +0200)]
[5605a] Updated to a running config (cf #5605 for other configs)
Francis Dupont [Tue, 1 May 2018 21:20:44 +0000 (23:20 +0200)]
[5605a] Added registeredFactory