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

33729 Commits

Author SHA1 Message Date
Francis Dupont
ebe3bdfb69 [#2314] Checkpoint: allows multiple entries 2022-03-23 09:50:03 +02:00
Francis Dupont
5194803106 [#2314] Checkpoint: added guard 2022-03-23 09:50:03 +02:00
Francis Dupont
2a9692d226 [#2314] Checkpoint: stricter syntax check 2022-03-23 09:50:03 +02:00
Andrei Pavel
9386c4a544 [#2350] hammer: install freeradius on prepare-system radius 2022-03-18 20:43:51 +02:00
Dan Theisen
beb1e17c2a [#2265] Update description of subnetX-update in ARM to clarify behavior 2022-03-18 16:18:04 +00:00
Andrei Pavel
ef66ff2dd4 [#2350] hammer: install freeradius on prepare-system radius 2022-03-18 12:30:35 +00:00
Thomas Markwalder
5be06a0eb4 [#2344] MySql CB use conditional bindings for lifetime triplets
src/hooks/dhcp/mysql_cb/mysql_cb_dhcp4.cc
    MySqlConfigBackendDHCPv4Impl::createUpdateClientClass4()
    - use createBinding() to conditionally create bindings
    for valid lifetime triplet

src/hooks/dhcp/mysql_cb/mysql_cb_dhcp6.cc
    MySqlConfigBackendDHCPv6Impl::createUpdateClientClass6()
    - use createBinding() to conditionally create bindings
    for valid lifetime and preferred lifetime triplets

src/lib/dhcpsrv/testutils/generic_cb_dhcp4_unittest.cc
    GenericConfigBackendDHCPv4Test::initTestClientClasses()
    - set class option defs to empty def collection to match the way
    we actually create them

    GenericConfigBackendDHCPv4Test::setAndGetAllClientClasses4Test()
    - test now compares fetched class content to source class content

src/lib/dhcpsrv/testutils/generic_cb_dhcp6_unittest.cc
    GenericConfigBackendDHCPv6Test::SetUp() - set CfgMgr family

    GenericConfigBackendDHCPv6Test::initTestClientClasses()
    - set class option defs to empty def collection to match the way
    we actually create them, also set preferred lifetime triplet

    GenericConfigBackendDHCPv6Test::setAndGetAllClientClasses4Test()
    - test now compares fetched class content to source class content
2022-03-18 13:28:29 +02:00
Razvan Becheriu
c1f5b7e221 [#2336] create smart pointer directly on function call 2022-03-16 20:19:23 +02:00
Razvan Becheriu
f569bc6e08 [#2336] initialize class match expression to null 2022-03-16 17:43:46 +02:00
Razvan Becheriu
bf08c5e93e [#2336] do not create Expression if test string is empty 2022-03-15 21:52:26 +02:00
Francis Dupont
a11f7d48e9 [#2304] Made RADIUS incompatible with early global HRs 2022-03-15 17:55:19 +01:00
Razvan Becheriu
324127e778 [#2356] added ChangeLog entry 2022-03-15 13:50:13 +02:00
Razvan Becheriu
55bf83dd69 [#2356] enable pgsql cb for v6 2022-03-15 13:18:13 +02:00
Razvan Becheriu
45edf4315c [#2249] updated comments 2022-03-15 12:17:43 +02:00
Razvan Becheriu
bdd4db1ded [#2249] addressed comments 2022-03-15 06:44:49 +02:00
Francis Dupont
e3cc10b579 [2249] regen flex/bison 2022-03-14 20:29:15 +02:00
Francis Dupont
f064948ba0 [#2249] Checkpoint: doc to finish 2022-03-14 20:27:13 +02:00
Francis Dupont
88a932fbbf [#2249] Addressed comments 2022-03-14 20:22:51 +02:00
Francis Dupont
f558fea1dd [#2249] Added a ChangeLog entry 2022-03-14 20:22:51 +02:00
Francis Dupont
5c53953cbe [#2249] Checkpoint before rebase 2022-03-14 20:20:37 +02:00
Francis Dupont
06be19c83e [#2249] Checkpoint: doc to finish 2022-03-14 20:20:37 +02:00
Francis Dupont
9df65becb2 [2249] regen flex/bison 2022-03-14 20:20:37 +02:00
Francis Dupont
af504ccd27 [#2249] Checkpoint before regen 2022-03-14 20:20:37 +02:00
Thomas Markwalder
5c74d3689f [#2355] ChangeLog update 2022-03-14 12:02:07 -04:00
Thomas Markwalder
8546a424c5 [#2355] Fixed ChangeLog entries 2022-03-14 12:00:45 -04:00
Thomas Markwalder
5f73efcfb0 [#2355] Added ChangeLog entries 2022-03-14 11:48:27 -04:00
Razvan Becheriu
accc869448 [#2355] consistency changes 2022-03-14 17:24:37 +02:00
Thomas Markwalder
889b35ef74 [#2355] PgSQL CB V6 support for client classes
src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp6.cc
    Implemented client class related functions

src/hooks/dhcp/pgsql_cb/pgsql_cb_impl.h
    Removed NOT_IMPL_STR macro

src/hooks/dhcp/pgsql_cb/pgsql_query_macros_dhcp.h
    Minor adjustments to PGSQL_UPDATE_CLIENT_CLASS6 query

src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_dhcp6_unittest.cc
    TEST_F(PgSqlConfigBackendDHCPv6Test, setAndGetAllClientClasses6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, getClientClass6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, createUpdateClientClass6OptionsTest)
    TEST_F(PgSqlConfigBackendDHCPv6Test, getModifiedClientClasses6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, deleteClientClass6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, deleteAllClientClasses6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, clientClassDependencies6Test)
    - new tests
2022-03-14 08:20:48 -04:00
Razvan Becheriu
e18de6f933 [#2349] updated comments 2022-03-11 21:53:17 +02:00
Thomas Markwalder
bc08026776 [#2349] Fix upgrade script spaces
Compare script flagged trailing space difference.
modified:   ../pgsql/upgrade_010_to_011.sh.in
2022-03-11 06:58:23 -05: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
Razvan Becheriu
79a701d72a [#2346] updated comments 2022-03-09 20:45:46 +02:00
Thomas Markwalder
55f37a73e1 [#2346] PgSql CB V6 globals,option defs, and options
src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp6.cc
    PgSqlConfigBackendDHCPv6Impl::
        getGlobalParameter6()
        createUpdateGlobalParameter6()
        deleteTransactional()
        insertOption6()
        createUpdateOption6()
        createUpdateOptionDef6()
        deleteOptionDef6()
        deleteOption6() - implemented

src/hooks/dhcp/pgsql_cb/pgsql_cb_impl.cc
    PgSqlConfigBackendImpl::createUpdateOptionDef()
    - added universe parameter

src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_dhcp4_mgr_unittest.cc
src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_dhcp6_mgr_unittest.cc
    - new files

src/hooks/dhcp/pgsql_cb/tests/Makefile.am
    Added pgsql_cb_dhcp4_mgr_unittest.cc, pgsql_cb_dhcp6_mgr_unittest.cc,

src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_dhcp6_unittest.cc
    New tests:
    TEST_F(PgSqlConfigBackendDHCPv6Test, createUpdateDeleteGlobalParameter6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, globalParameters6WithServerTagsTest)
    TEST_F(PgSqlConfigBackendDHCPv6Test, getAllGlobalParameters6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, getModifiedGlobalParameters6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, nullKeyErrorTest)
    TEST_F(PgSqlConfigBackendDHCPv6Test, getOptionDef6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, optionDefs6WithServerTagsTest)
    TEST_F(PgSqlConfigBackendDHCPv6Test, getAllOptionDefs6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, getModifiedOptionDefs6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, createUpdateDeleteOption6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, globalOptions6WithServerTagsTest)
    TEST_F(PgSqlConfigBackendDHCPv6Test, getAllOptions6Test)
    TEST_F(PgSqlConfigBackendDHCPv6Test, getModifiedOptions6Test)
2022-03-09 11:07:05 -05:00
Razvan Becheriu
851b8b0f51 [#2342] updated comments 2022-03-09 14:04:12 +02:00
Thomas Markwalder
47c6820f5c [#2342] PgSql CB6 core, UT, and CRUD for servers
new files:
    src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp6.cc
	src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp6.h
	src/hooks/dhcp/pgsql_cb/tests/pgsql_cb_dhcp6_unittest.cc

src/hooks/dhcp/pgsql_cb/Makefile.am
    Added pgsql_cb_dhcp6.cc, pgsql_cb_dhcp6.h

src/hooks/dhcp/pgsql_cb/pgsql_cb_dhcp4.cc
    Removed extraneous comment text

src/hooks/dhcp/pgsql_cb/pgsql_query_macros_dhcp.h
    Minor corrections

src/hooks/dhcp/pgsql_cb/tests/Makefile.am
    Added pgsql_cb_dhcp6_unittest.cc
2022-03-09 13:00:38 +02:00
Razvan Becheriu
41f3141299 [#2181] updated documentation 2022-03-05 07:16:37 +00:00
Razvan Becheriu
9611fb9e0a [#2181] updated documentation 2022-03-05 07:16:37 +00:00
Razvan Becheriu
721aa11566 [#2181] revert type change for pkt options_ member 2022-03-05 07:16:37 +00:00
Razvan Becheriu
0c05504c12 [#2181] added more details about the current lease access in custom format 2022-03-05 07:16:37 +00:00
Razvan Becheriu
a86db3136d [#2181] created RAII ScopedOptionsCopy to restore pkt options 2022-03-05 07:16:37 +00:00
Razvan Becheriu
4d26dae299 [#2181] pkt now uses OptionCollectionPtr instead of OptionCollection 2022-03-05 07:16:37 +00:00
Razvan Becheriu
4d3b60151a [#2330] fixed the getAllSharedNetworks6Test and disabled mysql as being broken 2022-03-04 20:34:00 +02:00
Thomas Markwalder
2c89d488ba [#2330] Addressed review comments
src/lib/dhcpsrv/testutils/generic_backend_unittest.*
    GenericBackendTest - Refactored to provide audit entry testing and logging

src/lib/dhcpsrv/testutils/generic_cb_dhcp4_unittest.*
src/lib/dhcpsrv/testutils/generic_cb_dhcp6_unittest.*
    Removed refactored stuff
2022-03-04 11:03:22 -05:00
Razvan Becheriu
fa1c142d48 [#2330] added more checks and fixed indentation and spaces 2022-03-03 20:11:35 +02:00
Thomas Markwalder
ec3f7d389e [#2330] Added missing tests
mysql_cb_dhcp6_unittes.cc
    - added in missing beginning tests
2022-03-03 13:41:53 +02:00
Thomas Markwalder
133d99d3e9 [#2330] Refactor CB V6 unit tests
src/lib/dhcpsrv/testutils/generic_cb_dhcp6_unittest.cc
src/lib/dhcpsrv/testutils/generic_cb_dhcp6_unittest.h
    new files

src/lib/dhcpsrv/testutils/Makefile.am
    Added generic_cb_dhcp6_unittest.h generic_cb_dhcp6_unittest.cc

src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp6_unittest.cc
    Moved common setup and UT test code to generic classes
2022-03-03 13:41:53 +02:00
Thomas Markwalder
ee952b65a9 [#2308] Clean up ChangeLog 2022-03-02 11:30:01 -05:00
Thomas Markwalder
7b1d4964f1 [#2308] Added ChangeLog 2022-03-02 11:30:01 -05:00
Thomas Markwalder
2d5448a0f9 [#2308] Removed misleading DHCP4_NCR_CREATE log statement from kea-dhcp4
modified:
    src/bin/dhcp4/dhcp4_messages.cc
    src/bin/dhcp4/dhcp4_messages.h
    src/bin/dhcp4/dhcp4_messages.mes
    src/bin/dhcp4/dhcp4_srv.cc
2022-03-02 11:30:01 -05:00
Razvan Becheriu
87a284195b [#2322] fixed comment and removed double spaces 2022-03-02 00:56:31 +02:00