lease6.address and ipv6_reservations.address columns
changed from varbinary(39) to binary(16).
lease6.binaddr column removed
deleted: src/share/api/binary-address6-upgrade.json
new file: src/share/database/scripts/mysql/upgrade_018_to_019.sh.in
configure.ac
added new mysql upgrade script
doc/sphinx/arm/hooks-lease-query.rst
removed doc for binary-address6-upgrade command
src/bin/admin/tests/mysql_tests.sh.in
modified to use inet6_aton/ntoa as now needed
Updated to test upgrage
src/lib/dhcpsrv/lease_mgr.h
LeaseMgr::upgradeBinaryAddress6() - no longer
abstract, provides a dummy implemention
src/lib/dhcpsrv/mysql_host_data_source.cc
Change v6 reservation address to binary
src/lib/dhcpsrv/mysql_lease_mgr.*
Remove lease6.binaddr and uses
Change lease6.address to binary
src/lib/mysql/mysql_constants.h
Update schema version
src/share/api/api_files.mk
Remove binary-address6-upgrade.json
src/share/database/scripts/mysql/Makefile.am
Add upgrade script
src/share/database/scripts/mysql/dhcpdb_create.mysql
Modify lease6, ipv6_reservations, and impacted functions
Addresses error:
mysql_connection_unittest.cc: In member function ‘virtual void {anonymous}::MySqlConnectionTest_connectionTimeout_Test::TestBody()’:
mysql_connection_unittest.cc:633:77: error: ‘mysql_get_option’ was not declared in this scope
EXPECT_EQ(0, mysql_get_option(mysql, MYSQL_OPT_CONNECT_TIMEOUT, &timeout));
Update subnets in shared-network BDEL trigger rather than
relying on foreign key update action
new files:
src/share/database/scripts/mysql/upgrade_013_to_014.sh.in
src/share/database/scripts/pgsql/upgrade_011_to_012.sh.in
configure.ac
added:
src/share/database/scripts/mysql/upgrade_013_to_014.sh
src/share/database/scripts/pgsql/upgrade_011_to_012.sh
src/bin/admin/tests/mysql_tests.sh.in
added 13 to 14 checks
src/bin/admin/tests/pgsql_tests.sh.in
added 11 to 12 checks
src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_unittest.cc
src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp6_unittest.cc
enabled disabled tests
src/lib/dhcpsrv/testutils/generic_cb_dhcp4_unittest.cc
GenericConfigBackendDHCPv4Test::getAllSharedNetworks4Test()
- updated expected audit entry order
src/lib/dhcpsrv/testutils/generic_cb_dhcp6_unittest.cc
GenericConfigBackendDHCPv6Test::getAllSharedNetworks6Test()
- updated expected audit entry order
src/lib/mysql/mysql_constants.h
Updated schema version to 14
src/lib/pgsql/pgsql_connection.h
Updated schema version to 12
src/share/database/scripts/mysql/.gitignore
src/share/database/scripts/mysql/Makefile.am
added upgrade_013_to_014.sh
src/share/database/scripts/mysql/dhcpdb_create.mysql
subnet rows are now updated directly in shared-network
BEFORE delete triggers (v4 and v6)
src/share/database/scripts/pgsql/Makefile.am
added upgrade_011_to_012.sh
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
subnet rows are now updated directly in shared-network
BEFORE delete triggers (v4 and v6)
configure.ac
Added src/share/database/scripts/pgsql/upgrade_010_to_011.sh
src/bin/admin/tests/pgsql_tests.sh.in
Updated for upgrade from 10 to 11.
src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp4.cc
Make use of PgSqlConfigBackendImpl::addDdnsReplaceClientNameBinding()
Add universe paramter to createUpdateOptionDef() calls
src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp6.cc
PgSqlConfigBackendDHCPv6Impl - implemented methods for
shared-networks, subnets, pools, subordinate option defs and options
getInterfaceId()
addInterfaceIdBinding()- new convenience functions for reading and
writing interface id options
src/hooks/dhcp/pgsql_cb/pgsql_cb_impl.*
PgSqlConfigBackendImpl::createUpdateOptionDef() - added universe
parameter to replace incorrect use of space name
PgSqlConfigBackendImpl::addDdnsReplaceClientNameBinding()
- new convenience function
src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_dhcp6_unittest.cc
Added tests for networks, subnets, pools
src/lib/dhcpsrv/testutils/generic_cb_dhcp6_unittest.cc
Replaced EXPECT_THROWs with ASSER_THROWs - simplifies
debugging tremendously
src/lib/pgsql/pgsql_connection.h
Updated schema version to 11
src/share/database/scripts/pgsql/Makefile.am
src/share/database/scripts/pgsql/.gitignore
Added upgrade_010_to_011.sh
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Added replacement of createOptionAuditDHCP6() to correct
assocation of options to PD pools
src/share/database/scripts/pgsql/upgrade_010_to_011.sh.in - new file
configure.ac
added src/share/database/scripts/pgsql/upgrade_009_to_010.sh
src/bin/admin/tests/pgsql_tests.sh.in
pgsql_upgrade_8_0_to_9_0()
pgsql_upgrade_9_0_to_10_0()
- added/improved upgrade tests
src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp4.cc
Implemented client class functions
src/hooks/dhcp/pgsql_cb/pgsql_query_macros_dhcp.h
Modified client class related queries
src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_dhcp4_unittest.cc
TEST_F(PgSqlConfigBackendDHCPv4Test, setAndGetAllClientClasses4Test)
TEST_F(PgSqlConfigBackendDHCPv4Test, getClientClass4Test)
TEST_F(PgSqlConfigBackendDHCPv4Test, createUpdateClientClass4OptionsTest)
TEST_F(PgSqlConfigBackendDHCPv4Test, getModifiedClientClasses4Test)
TEST_F(PgSqlConfigBackendDHCPv4Test, deleteClientClass4Test)
TEST_F(PgSqlConfigBackendDHCPv4Test, deleteAllClientClasses4Test)
TEST_F(PgSqlConfigBackendDHCPv4Test, clientClassDependencies4Test)
TEST_F(PgSqlConfigBackendDHCPv4Test, multipleAuditEntriesTest)
- new tests
src/lib/pgsql/pgsql_connection.h
Updated schema version to 10.0
src/share/database/scripts/pgsql/Makefile.am
Added upgrade_009_to_010.sh
src/share/database/scripts/pgsql/dhcpdb_create.pgsql
Schema updated to 10.0:
Replace setClientClass<4/6>Order()
- wrong local variable type, replace int constants with
boolean constants
dhcp<4/6>_client_class_dependency tables -
- primary key needs to be composite to allow muliptle rows per class id
func_dhcp<4/6>_client_class_check_dependency_BINS() - trigger functions
need to return NEW not NULL