2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 21:18:02 +00:00

1400 Commits

Author SHA1 Message Date
Slawek Figiel
c19ad2f760 [#2467] Require at least Python 3.0 2023-06-29 13:44:29 +02:00
Slawek Figiel
2eecf83247 [#2467] Use an error rather than a warning 2023-06-29 13:44:29 +02:00
Piotrek Zadroga
c830220054 [#2467] Apply 2 suggestions to 2 files 2023-06-29 13:44:29 +02:00
Slawek Figiel
7e9c84467f [#2467] Remove the kea_connector2.py 2023-06-29 13:44:08 +02:00
Suzanne Goldlust
7462769a25 [#2833] Add web archive link to Boost ticket 2023-06-27 15:32:48 +00:00
Suzanne Goldlust
8909c0b75d [#2833] Add web archive link to SunStudio/boost section 2023-06-27 15:32:48 +00:00
Suzanne Goldlust
668327a4cd [#2833] Replace broken link for SunStudio/boost 2023-06-27 15:32:48 +00:00
Thomas Markwalder
d5e3f18731 [#2909] Migrated v6 addresses to inet
src/share/database/scripts/pgsql/upgrade_016_to_017.sh.in
    New file

configure.ac
    Added new upgrade file

src/bin/admin/tests/pgsql_tests.sh.in
    Updated tests

src/lib/dhcpsrv/pgsql_host_data_source.cc
    Modified SQL to convert ipv6_reservations.address to/from inet

src/lib/dhcpsrv/pgsql_lease_mgr.*
    Modified SQL to convert lease6.address to/from inet
    Removed binaddr column
    Removed PgSqlLeaseMgr::upgradeBinaryAddress6()

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

src/share/database/scripts/pgsql/dhcpdb_create.pgsql
    Altered lease6,ipv6_reservastions table
    Updated v6 dump and upload functions
2023-06-22 11:43:36 +00:00
Thomas Markwalder
5ed24d5839 [#2909] Mysql v6 addresses to binary
lease6.address and ipv6_reservations.address columns
changed from varbinary(39) to binary(16).

lease6.binaddr column removed

deleted:    src/share/api/binary-address6-upgrade.json
new file:   src/share/database/scripts/mysql/upgrade_018_to_019.sh.in

configure.ac
   added new mysql upgrade script

doc/sphinx/arm/hooks-lease-query.rst
    removed doc for binary-address6-upgrade command

src/bin/admin/tests/mysql_tests.sh.in
    modified to use inet6_aton/ntoa as now needed
    Updated to test upgrage

src/lib/dhcpsrv/lease_mgr.h
    LeaseMgr::upgradeBinaryAddress6() - no longer
    abstract, provides a dummy implemention

src/lib/dhcpsrv/mysql_host_data_source.cc
    Change v6 reservation address to binary

src/lib/dhcpsrv/mysql_lease_mgr.*
    Remove lease6.binaddr and uses
    Change lease6.address to binary

src/lib/mysql/mysql_constants.h
    Update schema version

src/share/api/api_files.mk
    Remove binary-address6-upgrade.json

src/share/database/scripts/mysql/Makefile.am
    Add upgrade script

src/share/database/scripts/mysql/dhcpdb_create.mysql
    Modify lease6, ipv6_reservations, and impacted functions
2023-06-21 14:21:08 -04:00
Andrei Pavel
a9eb196adc
[#2899] bump up version in configure.ac 2023-05-30 22:38:25 +03:00
Andrei Pavel
50eee8ebac [#2786] changes to are-scripts-in-sync.py CI script 2023-05-09 14:26:04 +03:00
Wlodek Wencel
8755cd9d47 [#2846] update version 2023-04-27 10:21:39 +02:00
Wlodek Wencel
f8b1e49733 [2840] typos and docs update before release 2023-04-21 10:31:46 +02:00
Marcin Siodelski
dfd3aff945 [#2823] DB schemas include allocators 2023-04-19 18:26:04 +02:00
Francis Dupont
acc0c57736 [#2752] Rebased new schemas 2023-03-30 15:03:47 +02:00
Marcin Godzina
3ee0c5192f [#2813] bump version in configure.ac 2023-03-28 19:56:19 +00:00
Francis Dupont
7efe36286c [#719] Reapplied patch 2023-03-15 13:49:21 +01:00
Andrei Pavel
d0da5296ca
[#2774] bump up version to 2.3.6-git 2023-02-21 19:39:06 +02:00
Razvan Becheriu
9d02694589 [#2702] moved cfgrpt inside process folder 2023-02-11 12:43:02 +02:00
Marcin Siodelski
fc3c4794b7 [#2734] tcp_user_timeout for PostgreSQL 12+
Added conditional compilation to set tcp_user_timeout parameter for the
PostgreSQL 12 or later. Log a warning for earlier PostgreSQL versions.
2023-02-09 18:31:10 +01:00
Andrei Pavel
9db79b8e22
[#2669] fix --with-site-packages
Prior to this, it was installing the python libraries in the default
location even if a custom path was given.
2023-01-26 13:33:25 +02:00
Wlodek Wencel
79e6d9c2f4 [#2737] version updated to 2.3.5 2023-01-26 11:11:43 +01:00
Andrei Pavel
135bfa4ad7 [#2727] introduce HAVE_MYSQL_GET_OPTION
Addresses error:
 mysql_connection_unittest.cc: In member function ‘virtual void {anonymous}::MySqlConnectionTest_connectionTimeout_Test::TestBody()’:
 mysql_connection_unittest.cc:633:77: error: ‘mysql_get_option’ was not declared in this scope
      EXPECT_EQ(0, mysql_get_option(mysql, MYSQL_OPT_CONNECT_TIMEOUT, &timeout));
2023-01-23 16:48:14 +00:00
Andrei Pavel
6c24fda417
[#2656] bump autoconf version to 2.3.4-git 2022-11-29 19:15:57 +02:00
Thomas Markwalder
32d7bf4e93 [#2583] Initial addition of src/lib/tcp
Added first draft of TcpListener classes.
They compile but don't do anything useful.

configure.ac
src/lib/Makefile.am
    added tcp

src/lib/tcp/README
src/lib/tcp/tcp_connection.cc
src/lib/tcp/tcp_connection.h
src/lib/tcp/tcp_connection_acceptor.h
src/lib/tcp/tcp_connection_pool.cc
src/lib/tcp/tcp_connection_pool.h
src/lib/tcp/tcp_listener.cc
src/lib/tcp/tcp_listener.h
src/lib/tcp/tcp_log.cc
src/lib/tcp/tcp_log.h
src/lib/tcp/tcp_messages.cc
src/lib/tcp/tcp_messages.h
src/lib/tcp/tcp_messages.mes
src/lib/tcp/tests/.gitignore
src/lib/tcp/tests/Makefile.am
src/lib/tcp/tests/run_unittests.cc
    - new files
2022-11-10 14:43:23 -05:00
Wlodek Wencel
e5aa80ec3b [#2620] bump up version to 2.3.3 2022-10-26 15:09:43 +02:00
Andrei Pavel
cc95052a37
[#2311] rename AX_SYSREPO to AX_NETCONF 2022-10-21 17:45:25 +03:00
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