2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-06 00:45:23 +00:00
Commit Graph

89 Commits

Author SHA1 Message Date
Marcin Siodelski
c1eabee542 [#628,!341] interface-id is supported by the mysql_cb. 2019-05-27 10:25:50 -04:00
Francis Dupont
5ca2b54e05 [397-cb-implement-mysqlconfigbackenddhcpv6] checkpoint (including shema fix of fix 2019-04-18 15:52:51 +02:00
Francis Dupont
e3dc02c111 [397-cb-implement-mysqlconfigbackenddhcpv6] checkpoint: unit tests to update 2019-04-18 15:52:51 +02:00
Francis Dupont
5d96145025 [481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated] Addressed comments 2019-03-12 18:20:47 -04:00
Francis Dupont
ecb27f49c3 [481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated] Added tests and updated schema 2019-03-12 18:20:47 -04:00
Thomas Markwalder
6af5e78ec8 [#526,!269] - MySQL unit tests now wipe data, instead of schema
src/share/database/scripts/mysql/wipe_data.sh.in -
    New shell script which intelligently deletes data from
    the schema IF the schema version matches the expected version

src/lib/mysql/testutils/mysql_schema.*
    destroyMySQLSchema() - modfied to default to calling
    wipeData(), and only destroying the schema if that fails
    or by force flag = true;

    createMySQLSchema() - modified to default to calling
    wipeData(), and only recreating the schema if that
    fails or by force flag = true;

    wipeData() - new method which runs the
    MySQL wipe_data.sh shell script, passing in the expected
    schema version.

src/share/database/scripts/mysql/dhcpdb_create.mysql
    createAuditRevisionDHCP4()
    createAuditEntryDHCP4()
    createAuditRevisionDHCP6()
    createAuditEntryDHCP6() - added session variable,
    @disable_audit, to allow procedures to be "turned
    off" during data wiping.

src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_mgr_unittest.cc
src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_unittest.cc
src/lib/dhcpsrv/tests/cfg_db_access_unittest.cc
src/lib/dhcpsrv/tests/host_mgr_unittest.cc
src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    Removed calls to destroy schema from test constructors
2019-03-08 12:09:14 -05:00
Marcin Siodelski
da92b4e9e3 [#488,!259] Added sname, next-server and boot-file-name to MySQL schema. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
434b93940c [#488,!259] Added support for authoritative flag in MySQL CB. 2019-03-07 08:00:35 -05:00
Marcin Siodelski
01fc4d5bb4 [#489,!250] Drop constraints on dhcp6_[pd]_pool prior to rename. 2019-03-04 14:45:28 +01:00
Marcin Siodelski
108a86cbc5 [#489,!250] Extend MySQL backend to store floating point values. 2019-03-01 15:06:25 +01:00
Marcin Siodelski
ffde8dc785 [#489] Updated MySQL CB to handle unspecified subnet and network values. 2019-02-28 17:38:53 +01:00
Francis Dupont
7fec7b6182 [460-update-mysql-database-schema-for-dhcpv6-config-backend--port] Ported DHCPv4 trigger & co to DHCPv6 2019-02-21 08:30:56 -05:00
Francis Dupont
705da9b316 [460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Aligned server table idexes 2019-02-20 11:09:26 -05:00
Francis Dupont
cbe62fed56 [460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Renamed dhcp6_subnet_id in dhcp6_pd_pool too 2019-02-20 11:09:26 -05:00
Francis Dupont
b7dcffd2a1 [460-update-mysql-database-schema-for-dhcpv6--align-on-dhcpv4] Renamed a dhcp6_pool (unused table) column 2019-02-20 11:09:26 -05:00
Marcin Siodelski
71200e98f5 [#444,!229] Added new line in the dhcpdb_create.mysql 2019-02-08 13:18:53 +01:00
Marcin Siodelski
d91617106d [#444,!229] Switched back to second precision in MySQL CB. 2019-02-08 09:46:21 +01:00
Francis Dupont
a6c6439112 [354-compilation-with-mysql-fails-on-fedora-29] Updated schema & upgrade 2019-02-07 17:02:22 -05:00
Marcin Siodelski
63e0cbda5c [#429,!217] Extended dhcpX_global_parameter: added parameter_type. 2019-01-31 18:07:35 +01:00
Marcin Siodelski
6d40db07ef [#396,!205] Addressed a typo in the dhcpdb_create.mysql script. 2019-01-30 19:01:50 +01:00
Marcin Siodelski
6c8ae1e1e1 [#396,!205] Corrected referential actions in CB tables. 2019-01-30 12:16:55 +01:00
Francis Dupont
7bbbf0ac1a [396-add-audit-trail-for-the-dhcpv4-mysql-backend] cosmetics (spelling, spurious space at eol, ...) 2019-01-30 10:18:59 +01:00
Marcin Siodelski
84d9d7a401 [#396,!205] Audit revision timestamp is set by Kea. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
58e6f3b475 [#396,!205] Use microsec precision for the CB tables. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
c33495fa7a [#396,!205] Modify MySQL schema to use fractional second timestamps. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
c926fa96f4 [#396,!205] Fix issues in the core tests related to schema changes. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
c709b42fd0 [#396,!205] Cleanup in the database creation script. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
7d4018d592 [#396,!205] Handle audit for pool specific options. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
92012abba1 [#396,!205] Improved commentary in the MySQL CB backend. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
c8401328a2 [#396,!205] Updated dhcpdb_create.mysql 2019-01-30 10:18:59 +01:00
Marcin Siodelski
dcc68c8f1a [#396,!205] Implemented audit for options. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
e03cc3f300 [#396,!205] Implemented audit for the option definitions. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
5446173b3f [#396,!205] Implemented audit for the shared networks. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
86cc55af7e [#396,!205] Implemented audit for the subnets. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
5e181f7ac7 [#396,!205] Added audit for global parameters. 2019-01-30 10:18:59 +01:00
Marcin Siodelski
cee51915c5 [288,!158] Changed references from RFC3315 to RFC8415 in the src code. 2018-12-06 08:20:09 -05:00
Marcin Siodelski
00e880aeb1 [#93,!63] Server selection partially working for global paramneters. 2018-10-18 13:35:08 +02:00
Marcin Siodelski
73ba94b1fb [#93,!63] Added CASCADE delete to MySQL CB schema. 2018-10-18 13:35:08 +02:00
Marcin Siodelski
d4805251ff [#93,!63] Added logical servers to dhcp4_server and dhcp6_server MySQL. 2018-10-18 13:35:08 +02:00
Marcin Siodelski
8716265391 [#93,!51] Pool specific options are now managed in MySQL database. 2018-10-08 20:09:51 +02:00
Marcin Siodelski
5f33dc7ddd [#93,!51] Added options management in MySQL DHCPv4 config backend. 2018-10-08 20:09:51 +02:00
Marcin Siodelski
8eaed8f82e [#93,!35] Changed option def code from tinyint to smallint. 2018-10-08 16:39:22 +02:00
Marcin Siodelski
e74bc092e0 [#93,!35] Implemented fetching option definitions from the database. 2018-10-08 16:39:22 +02:00
Marcin Siodelski
372b859023 [#93,!35] Updated DHCPv4 Config Backend to insert and fetch shared network. 2018-10-08 16:39:22 +02:00
Marcin Siodelski
4d4081a4d5 [#93,!35] Pools are stored with IPv4 subnets. 2018-10-08 16:39:22 +02:00
Marcin Siodelski
e28c0c7b3e [#89,!22] Added log_message column to audit MySQL tables. 2018-09-18 07:41:11 +02:00
Marcin Siodelski
1cffada5e9 [#89,!22] Auto increment option id. 2018-09-18 07:41:11 +02:00
Marcin Siodelski
4c4a6769df [#89,!22] Modified MySQL 6->7 upgrade script according to review. 2018-09-18 07:41:11 +02:00
Marcin Siodelski
5770699fd3 [#89,!22] Changes in the dhcpdb_create.mysql as a result of review. 2018-09-18 07:41:11 +02:00
Marcin Siodelski
ae27304824 [#89,!22] Implemented MySQL schema upgrade tests for CB. 2018-09-18 07:41:11 +02:00