| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
review comments 2
test1
fixed unit tests
fixed cassandra
fixed cassandra2
|
|
See #88 for review comments
modified upgrade files
modified tests
|
|
See issue #83
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
Merge branch 'trac5586'
|
|
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
|
|
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)
|
|
- host delete
- user-contexts
- DHCPv4 fixed fields
- also PostgreSQL now stores hwaddr type and hwaddr source
# Conflicts:
# src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
|
|
Merges in branch 'trac5522'
|
|
https://github.com/razvan-becheriu/kea into github70
|
|
|
|
|
|
new file:
src/share/database/scripts/mysql/upgrade_5.1_to_5.2.sh.in
renamed:
src/share/database/scripts/mysql/upgrade_5.1_to_6.0.sh.in
-> src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
new file:
src/share/database/scripts/pgsql/upgrade_3.2_to_3.3.sh.in
renamed:
src/share/database/scripts/pgsql/upgrade_3.2_to_4.0.sh.in
-> src/share/database/scripts/pgsql/upgrade_3.3_to_4.0.sh.in
src/lib/dhcpsrv/pgsql_host_data_source.cc
changed OID_INT4 to OID_INT8 for subnet_id inputs in
TaggedStatements
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.h
src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
Added new tests to verify maxium value for subnet_id works
src/share/database/scripts/mysql/dhcpdb_create.mysql
Added 5.1 to 5.2 changes
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Added 3.2 to 3.3 changes
|
|
|
|
|
|
|
|
|
|
|
|
# Conflicts:
# doc/guide/install.xml
# src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
# src/lib/dhcpsrv/testutils/lease_file_io.cc
|
|
and definitions in lease and host managers
|
|
|
|
|
|
|
|
|
|
|
|
# Conflicts:
# src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also, updated MySQL backend to convert 0 values to null to make sure that
multiple reservations are possible when IPv4 address is unspecified.
|
|
|
|
|
|
|
|
|
|
- replaced void* with boost::any for type safety (might be just a bit less efficient)
- replaced a multi-index-container used for statement parameters ( with position index and name index ) and a vector of the same parameters with a compile-time type-based map
- refactored lease manager to use exchanges
- exchanges now support UDTs (user defined types) and collections to be used in Cassandra statements
- replaced size-ambiguous types (e.g. int) with size-explicit types (e.g. int32_t) in Cassandra-related code
- made exception messages and log messages more detailed and consistent in format
|