2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00
Commit Graph

228 Commits

Author SHA1 Message Date
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
eec499f9da [master] Removed accidentally committed files.
Reviewed by Wlodek.
2018-10-10 14:14:44 +02:00
Marcin Siodelski
52dad7c3ae [#93,!56] Updated MySQL config backend to manage global parameters. 2018-10-08 22:01:27 +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
6726e65521 [#93,!35] Added missing column in MySQL upgrade script. 2018-10-08 16:39:22 +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
Marcin Siodelski
fd5972967b [#89,!22] Removed dhcpX_options constraints. 2018-09-18 07:41:11 +02:00
Marcin Siodelski
03b007f970 [#89,!22] Updated MySQL 6.0 to 7.0 upgrade script to include CB tables. 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
Marcin Siodelski
39b3aa8b0c [#15,!11] Added new scripts and netconf tests to .gitignore 2018-09-05 18:03:15 +02:00
Thomas Markwalder
8d04ad0ae6 [#15,!11] Schema upgrades for Kea 1.5, now update subnet ids in existing host reservations
src/bin/admin/tests/pgsql_tests.sh.in
src/bin/admin/tests/cql_tests.sh.in
src/bin/admin/tests/mysql_tests.sh.in
    Added functions that verify subnet id values are updated

src/share/database/scripts/cql/upgrade_2.0_to_3.0.sh.in
src/share/database/scripts/mysql/upgrade_6.0_to_7.0.sh.in
src/share/database/scripts/pgsql/upgrade_4.0_to_5.0.sh.in
    Added logic to update subnet id values in existing reservations
    and options
2018-08-24 15:38:20 -04: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
Wlodek Wencel
4a26b2fe27 [master] Copyright update to 2018 2018-05-24 13:17:10 +02:00
Thomas Markwalder
ebd3358bd5 [5586] Added schema unit tests
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
2018-05-08 14:41:40 -04: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
a378ec2848 [master] Merge branch 'trac5468' 2018-01-15 13:59:28 +01:00
Tomek Mrugalski
e37606fd2d [master] Merge branch 'github37' (Cassandra host reservations)
# Conflicts:
#	src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
2018-01-11 15:43:59 +01: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