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

48 Commits

Author SHA1 Message Date
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
Marcin Siodelski
fd5972967b [#89,!22] Removed dhcpX_options constraints. 2018-09-18 07:41:11 +02:00
Marcin Siodelski
d27b1bdc1b [#89,!22] Updated MySQL database creation script with new CB tables. 2018-09-18 07:41:11 +02:00
Tomek Mrugalski
808ce380a6 [github88] Schema creation scripts fixed. 2018-07-23 14:35:48 +02:00
mayya
3606c3ba9c fixed minor issues 2018-07-23 13:39:16 +02:00
mayya
f30ca44685 review comments 2
review comments 2

test1

fixed unit tests

fixed cassandra

fixed cassandra2
2018-07-23 13:37:01 +02:00
mayya
beeadf3d59 [lib] Address review comments for #83
See  #88 for review comments

modified upgrade files

modified tests
2018-07-23 13:35:50 +02:00
mayya
2090af48c1 [lib] Extend host structure to support auth keys for reconfiguration.
See issue #83
2018-07-23 13:31:03 +02:00
Francis Dupont
9591b8faaa [5584] Addressed comments 2018-07-07 19:19:15 +02:00
Tomek Mrugalski
e0216b1d54 [5584] Minor changes after review. 2018-07-06 16:37:39 +02:00
Francis Dupont
66f4a42a9b [5584] Checkpoint: core code and test done 2018-06-22 01:05:09 +02:00
Francis Dupont
fe5098fdb3 [5584] Checkpoint: updated schema, code and partially tests 2018-06-21 11:15:48 +02:00
Thomas Markwalder
a662ab45d9 [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)
2018-05-02 13:36:02 -04:00
Thomas Markwalder
d1dd0f2e27 [master] subnet_id column types now consistent in schemas
Merges in branch 'trac5522'
2018-03-05 15:01:29 -05:00
Marcin Siodelski
4337cfd068 [5437] Replaced index by iaid_subnet_id_duid with duid_iaid_subnet_id. 2018-02-27 21:06:28 +01:00
Thomas Markwalder
993da9cb0b [5522] Fixed subnet_id column types in MySQL and Postgres schemas
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
2018-02-22 13:13:34 -05:00
Marcin Siodelski
a1697ce64b [5468] Added lease indexing by subnet identifiers and lease type. 2018-01-09 15:47:10 +01:00
Francis Dupont
a22b7af0bf [5351] Addressed nearly all comments 2017-12-17 19:48:04 +01:00
Francis Dupont
f898544564 [5351] Checkpoint: todo host DB tests 2017-12-03 19:23:00 +01:00
Francis Dupont
869ab1ed57 [5351] Checkpoint: added user context in options stored in DBs, todo add tests 2017-12-01 09:35:18 +01:00
Josh Soref
07f40e4422 spelling: performance 2017-07-23 15:28:00 -04:00
Josh Soref
3331fda2e3 spelling: initial 2017-07-23 13:28:07 -04:00
Tomek Mrugalski
88555d8f23 [master] Merge branch 'trac5208a' (preparations for host_cmds hook) 2017-04-24 21:29:15 +02:00
Marcin Siodelski
20d70ed0b3 [5208] Multiple fixes as a result of review.
The most notable change is the update of the MySQL trigger which
deletes options as a consequence of deletion of the host.
2017-04-24 16:19:37 +02:00
Tomek Mrugalski
db96e406b9 [5195] flex-id value added to know identifiers list. 2017-04-20 15:46:24 +02:00
Marcin Siodelski
acedfa970b [5102] Addressed review comments.
- Removed MySQL indexes added accidentally.
- Fixed a commentary in a DORA unit tests.
2017-04-20 11:27:34 +02:00
Marcin Siodelski
ec873ef2f2 [5102] Updated MySQL and PgSQL schemas with 'client-id' host id type. 2017-04-14 23:39:13 +02:00
Wlodek Wencel
9e3ca83d07 [v_1_2_0] copy right dates updated 2017-04-12 15:47:26 +02:00
Andrei Pavel
9082500187 Corrected typos 2016-12-14 16:57:44 +02:00
Yusef Shaban
cf0be27ae9 Update dhcpdb_create.mysql
fixing " to ' as mysql will throw errors about "
2016-09-12 15:09:03 -07:00
Marcin Siodelski
90841f377e [4562] Updated MySQL upgrade scripts to schema version 5.0. 2016-08-26 17:17:57 +02:00
Marcin Siodelski
9b79fe005d [master] Merge branch 'trac4552' 2016-08-25 18:18:07 +02:00
Marcin Siodelski
db705b7435 [4552] Added siaddr, sname and file into the hosts table. 2016-08-23 12:09:36 +02:00
Marcin Siodelski
4a8efcb45a [4489] Addressed review comments.
The only review item not addressed with this commit is the
implementation of unit test that operates on the read only
database, i.e. the database containing tables on which the
given user only has SELECT privileges.
2016-08-17 11:22:24 +02:00
Francis Dupont
75a8350485 [master] Fixed rights of non-executable regular files 2016-07-08 20:38:15 +02:00
Tomek Mrugalski
d47b8dfe5a change requests from isc
# Conflicts:
#	src/bin/admin/tests/data/pgsql.lease6_dump_test.reference.csv
2016-06-23 14:30:29 +02:00
Tomek Mrugalski
a47f78f491 renamed classes and files, fixed issues, added comments
# Conflicts:
#	ChangeLog
#	src/lib/dhcpsrv/cfg_hosts.cc
2016-06-23 14:27:04 +02:00
Marcin Siodelski
6efa4faf3a [4281] Added scope_id to the MySQL tables holding options. 2016-05-25 17:52:03 +02:00
Marcin Siodelski
aae4a9db6b [4281] Alterations to MySQL host database schema.
- Option code in dhcp6_options table is now SMALLINT.
- Subnet ids are now unsigned.
2016-04-28 11:33:43 +02:00
Thomas Markwalder
0b4ec962af [4239] Moved schema scripts to src/share/database/scripts
Moved schema scripts into a new common location:

        src/share/database/scripts

    to make them accessible to both kea-admin and dhcpsrv testing
2016-04-12 11:14:52 -04:00