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 mysql/upgrade_x_00010_to_00011.sh.in
src/bin/admin/tests/mysql_tests.sh.in
mysql_upgrade_test() - added test of upgrade from 10 to 11.
src/lib/mysql/mysql_constants.h
Updated schema version
src/share/database/scripts/mysql/Makefile.am
Added upgrade_x_00010_to_00011.sh
src/share/database/scripts/mysql/dhcpdb_create.mysql
Added index replacements
src/share/database/scripts/mysql/upgrade_x_00010_to_00011.sh.in
New file, upgrades from 10 to 11.
Naming scheme changed to keep file order sane.
Extended database schema with new tables holding information about
configured client classes, ordering them, storing their dependencies and
associating them with the server tags. In addition, extended the tables
holding option definitions with an additional column class_id to optionally
associate an option definition with a class.
Adjusted behavior of the del(subnet_id, addr) function in MySQL and
Postgres to delete multiple hosts having the same IPv4 or IPv6 address.
The MySQL schema had to be updated to use CASCADE action rather than
trigger to remove dependent options and IPv6 reservations.
Introduced new host API function which allows for configuring selected
backends to accept non-unique IP reservations for multiple hosts. Support
for it was added in MySQL, Postgres and Kea config file. It is not
supported in Cassandra. New migrations for MySQL and Postgres have been
created.
Prior to this change, when an option is set or deleted, the owning subnet,
shared network or pool would not update its modification timestamp. As a
result, the server would not fecth the updated configuration.