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

1323 Commits

Author SHA1 Message Date
Andrei Pavel
38c7b0f4e7 [#2311] detect C++20 in autoconf
And enforce -std=c++20 when building
--with-libyang-cpp or --with-sysrepo-cpp.
2022-10-21 17:45:24 +03:00
Andrei Pavel
f37159f34c [#2311] migrate autoconf to libyang2 and sysrepo2 2022-10-21 17:45:24 +03:00
Marcin Godzina
bd7ecb64ed [#2580] Bump version in configure.ac to 2.3.2-git 2022-09-27 16:37:54 +00:00
Andrei Pavel
c3a0ff6f6e [#2558] improved searching of yanglint and its libraries 2022-09-23 13:37:15 +03:00
Wlodek Wencel
f19ab144e5 [#2556] update version in configure.ac 2022-08-31 17:04:54 +02:00
Razvan Becheriu
c69f7b6bea [#2541] reverted path in upgrade scripts and added admin-utils.sh.in 2022-08-20 19:29:32 +03:00
Razvan Becheriu
d1d4aefec6 [#2071] propagate all flags from configure to distcheck 2022-08-10 16:02:22 +02:00
Thomas Markwalder
fe01c6e87d [#2235] Added library load tests to core hooks
Extended the LibLoadTest class added recently,
new file:
    src/lib/testutils/lib_load_test_fixture.cc

Added libloadest directory and tests:

src/hooks/dhcp/bootp/libloadtests/.gitignore
src/hooks/dhcp/bootp/libloadtests/Makefile.am
src/hooks/dhcp/bootp/libloadtests/load_unload_unittests.cc
src/hooks/dhcp/bootp/libloadtests/run_unittests.cc

src/hooks/dhcp/lease_cmds/libloadtests/.gitignore
src/hooks/dhcp/lease_cmds/libloadtests/Makefile.am
src/hooks/dhcp/lease_cmds/libloadtests/load_unload_unittests.cc
src/hooks/dhcp/lease_cmds/libloadtests/run_unittests.cc

src/hooks/dhcp/mysql_cb/libloadtests/.gitignore
src/hooks/dhcp/mysql_cb/libloadtests/Makefile.am
src/hooks/dhcp/mysql_cb/libloadtests/load_unload_unittests.cc
src/hooks/dhcp/mysql_cb/libloadtests/run_unittests.cc

src/hooks/dhcp/pgsql_cb/libloadtests/.gitignore
src/hooks/dhcp/pgsql_cb/libloadtests/Makefile.am
src/hooks/dhcp/pgsql_cb/libloadtests/load_unload_unittests.cc
src/hooks/dhcp/pgsql_cb/libloadtests/run_unittests.cc

src/hooks/dhcp/stat_cmds/libloadtests/.gitignore
src/hooks/dhcp/stat_cmds/libloadtests/Makefile.am
src/hooks/dhcp/stat_cmds/libloadtests/load_unload_unittests.cc
src/hooks/dhcp/stat_cmds/libloadtests/run_unittests.cc
2022-07-27 14:49:26 +02:00
Andrei Pavel
7c026894d3 [#2512] bump version in configure.ac to 2.3.0-git 2022-07-27 12:18:34 +03:00
Andrei Pavel
acafdf8dfe [#2445] PostgreSQL schema changes in support of lease limiting 2022-06-29 15:51:27 +03:00
Marcin Godzina
7b1a72cbcb Update configure.ac 2022-06-28 14:22:07 +00:00
Thomas Markwalder
df14c7593e [#2299] Create subnet audit entry when network is deleted
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)
2022-06-03 10:47:16 -04:00
Andrei Pavel
90eceed114 [#2426] bump version to 2.1.7-git 2022-05-26 08:48:52 +03:00
Marcin Godzina
21be4a2812 Update configure.ac 2022-05-17 09:00:08 +00:00
Tomek Mrugalski
d7fe847ce1 [#1548] DDNS tuning hook removed 2022-04-21 10:19:19 -04:00
Tomek Mrugalski
bc977f7832 [#1548] New dir added to configure.ac, Makefiles 2022-04-21 10:19:19 -04:00
Tomek Mrugalski
201f19ecaa [#2372] Some leftover benchmark cruft removed 2022-04-20 15:05:01 +00:00
Tomek Mrugalski
7a43a83062 [#1548] Benchmark code removed 2022-04-20 15:05:01 +00:00
Razvan Becheriu
7eb6ad54e4 [#2116] addressed review 2022-03-31 08:11:37 +00:00
Razvan Becheriu
d41571ce17 [#2116] remove cql code 2022-03-31 08:11:37 +00:00
Wlodek Wencel
c8060d7029 [#2371] update version in configure.ac 2022-03-30 13:40:28 +02:00
Thomas Markwalder
729d672fa6 [#2349] PgSql CB V6 shared-networks, subnets, pools
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
2022-03-10 15:59:29 -05:00
Thomas Markwalder
2e5707aa6a [#2322] Adds client classes to Postgresql CB v4
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
2022-02-24 10:57:54 -05:00
Marcin Godzina
7182090638 [#2328] Bump version in configure.ac after 2.1.3 release 2022-02-24 12:56:53 +01:00
Thomas Markwalder
7f724e161f [#95] Adds v4 support for networks,subnets,pools,options
configure.ac
        added pgsql/upgrade_008_to_009.sh

    src/share/database/scripts/pgsql/dhcpdb_create.pgsql
    src/share/database/scripts/pgsql/upgrade_008_to_009.sh.in
        Corrected typo dhcp4_option_def_server_option_def_id_fkey
        Add missing cascade to constraint on dhcp4/6_subnet_server tables.
        Dropped extraneous dhcp4/6_shared_network_ADEL triggers

        Replaced createOptionAuditDHCP4() and
        createOptionAuditDHCP6() with corrected local variable type

    src/bin/admin/tests/pgsql_tests.sh.in
        updated expected schema version
        added pgsql_upgrade_8_0_to_9_0()

    src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_unittest.cc
        Disabled TEST_F(MySqlConfigBackendDHCPv4Test, getAllSharedNetworks4Test)

    src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp4.cc
        implemented functions for shared-networks, subnets,
        pools, options, and option-defs

    src/hooks/dhcp/pgsql_cb/pgsql_cb_impl.*
        PgSqlConfigBackendImpl::
        setRelays()
        setRequireClasses()
        - new convenience functions

        getAllOptions()
        getOptions()
        - implemented

        Changed reference tracking from bool to counter
        processOptionRow()
        addOptionValueBinding() -  corrected buffer handling

    src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_dhcp4_unittest.cc
        Added tests subnets, shared networks, pools, options, option defs,

    src/lib/dhcpsrv/testutils/generic_cb_dhcp4_unittest.*
        GenericConfigBackendDHCPv4Test::testNewAuditEntry() new variant which
        accepts a list of expected audit entries

        GenericConfigBackendDHCPv4Test::getAllSharedNetworks4Test() - now
        tests for an expected list of audit entries
2022-02-17 19:12:10 +00:00
Andrei Pavel
ab8fe5ddbf [#2292] bump version to 2.1.3-git 2022-01-26 18:54:40 +02:00
Andrei Pavel
9832c56ad6 [#2038] kea-admin lease-dump mysql outputs a memfile-ready CSV 2022-01-13 14:53:03 +02:00
Francis Dupont
57a2beb736 [#2218] Added quotes and double quotes 2022-01-12 15:09:35 +01:00
Thomas Markwalder
756d609cb4 [#2244] Renamed schema variables
configure.ac
src/share/database/scripts/pgsql/.gitignore
src/share/database/scripts/pgsql/Makefile.am
    Updated pgsql upgrade file names

src/lib/dhcpsrv/pgsql_lease_mgr.cc
src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
src/lib/pgsql/pgsql_connection.h
src/lib/pgsql/tests/pgsql_connection_unittest.cc
src/lib/pgsql/testutils/pgsql_schema.cc
src/lib/pgsql/testutils/pgsql_schema.h
src/hooks/dhcp/pgsql_cb/pgsql_cb_impl.cc
src/lib/dhcpsrv/pgsql_host_data_source.cc
    Rename schema variables

src/share/database/scripts/pgsql/upgrade_007_to_008.sh.in
    Added escapes to $s
2022-01-07 15:26:56 -05:00
Thomas Markwalder
fbed254406 [#2244] Added missing columns to PostgreSQL schema
configure.ac
    added src/share/database/scripts/pgsql/upgrade_7.0_to_8.0.sh

src/bin/admin/tests/pgsql_tests.sh.in
    Updated to test upgrading to 8.0
    pgsql_upgrade_7_0_to_8_0() - new function

src/lib/pgsql/pgsql_connection.h
    Updated schema version

src/share/database/scripts/pgsql/Makefile.am
    added upgrade_7.0_to_8.0.sh.in

src/share/database/scripts/pgsql/dhcpdb_create.pgsql
    Adds class_id column and constraints to dhcp4/6_option_def tables
    Adds preferred lifetime columns to dhcp6_client_class

src/share/database/scripts/pgsql/upgrade_7.0_to_8.0.sh.in
    - new file
    Adds class_id column and constraints to dhcp4/6_option_def tables
    Adds preferred lifetime columns to dhcp6_client_class
2022-01-07 15:26:56 -05:00
Francis Dupont
9b3c87b630 [#34] Checkpoint before rebase 2022-01-06 13:12:40 +01:00
Francis Dupont
1d3f0133ba [#34] Checkpoint: code and tests to do 2022-01-06 13:12:40 +01:00
Andrei Pavel
c6f5220df8 [#2206] bump version to 2.1.2-git 2021-11-24 22:13:36 +02:00
Tomek Mrugalski
6088782a66 [#1848] Template files for new hook added 2021-11-17 15:35:18 +01:00
Andrei Pavel
cb86907a4a [#2160] bump version to 2.1.1-git 2021-11-16 08:46:58 +00:00
Tomek Mrugalski
b43a0a09b5 [#90] Initial 7.0 schema script skeleton 2021-10-28 12:31:40 +02:00
Francis Dupont
1a20a191c2 [#2129] Made stat test tools more generic 2021-10-11 19:26:12 +03:00
Francis Dupont
b7a3c2d9b0 [#2129] Made stat test tools more generic 2021-10-11 17:36:57 +02:00
Wlodek Wencel
a0128271fc [#2118] changed kea version for 2.1 2021-10-07 09:52:17 +00:00
Razvan Becheriu
2d7d8f3e4b [#2095] removed dependency on src/bin/d2 2021-10-04 20:12:47 +03:00
Wlodek Wencel
cd3588b7c6 [2017] copyright dates, changelog, messages files changed for release 2021-09-27 07:39:31 +00:00
Marcin Siodelski
e8df2ff2e3 [#2094] Created MySQL schema version 12
The updated schema causes auto-deletion of options associated with
deleted client classes.
2021-09-20 23:14:02 +02:00
Andrei Pavel
69f16658ba [#2072] 1.9.12-git starts here. 2021-08-31 16:14:30 +03:00
Tomek Mrugalski
155a3d11af [#2020] MySQL upgrade scripts renumbered
- it's just a leading 00s added in lots of places
2021-08-17 09:54:35 -04:00
Thomas Markwalder
ae325ed834 [#2030] Replaced indexes for mysql reclamation queries
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.
2021-08-17 09:54:35 -04:00
Andrei Pavel
c0e3afe783 [#1990] fix --with-log4cplus description 2021-08-12 18:33:27 +03:00
Michal Nowikowski
af201038f8 [#2013] bumped up kea version to 1.9.11 2021-08-05 14:49:43 +00:00
Andrei Pavel
404d420cc4 [#2008] don't install the hashes directory
and make reinstall.sh work from installation
2021-07-30 14:42:05 +03:00
Andrei Pavel
298f3d62d2 [#453] move to bison 3.3.0 2021-07-26 12:56:35 +02:00
Tomek Mrugalski
7e05920dd7 [#1077] All sysrepo/libyang variables printed 2021-07-26 10:17:04 +00:00