2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

29646 Commits

Author SHA1 Message Date
Thomas Markwalder
4ac6e5b9ee [#35,!517] Updated ARM and example confings
Updated:
    doc/examples/kea4/all-keys.json
    doc/examples/kea4/with-ddns.json
    doc/examples/kea6/all-keys.json
    doc/sphinx/arm/dhcp4-srv.rst
    doc/sphinx/arm/dhcp6-srv.rst

Added ChangeLogEntry
2019-10-10 08:36:14 -04:00
Thomas Markwalder
1f60cb9dd7 [#35,!517] Removed ddns params from INHERIT_TO_SUBNETX lists
src/bin/dhcp4/tests/get_config_unittest.cc
src/bin/dhcp6/tests/get_config_unittest.cc
    regenerated tests

src/lib/dhcpsrv/parsers/simple_parser4.cc
    Removed DDNS params from INHERIT_TO_SUBNET4 list

src/lib/dhcpsrv/parsers/simple_parser6.cc
    Removed DDNS params from INHERIT_TO_SUBNET6 list
2019-10-10 08:34:39 -04:00
Thomas Markwalder
f5179e122a [#35,!517] Added v6 scope test
src/bin/dhcp6/tests/fqdn_unittest.cc
    TEST_F(FqdnDhcpv6SrvTest, ddnsScopeTest)  - new test
2019-10-10 08:34:39 -04:00
Thomas Markwalder
ce14110bf2 [#35,!517] Rework kea-dhcp6 parsing and server
src/bin/dhcp6/ctrl_dhcp6_srv.cc
    Removed setting D2ClientCfg fetch function

src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
    ddns-send-updates
    ddns-override-no-update
    ddns-override-client-update
    ddns-replace-client-name
    ddns-generated-prefix
    ddns-qualifying-suffix
    - added to DHCP4,SHARED_NETWORK,SUBNET4

    hostname-char-set
    hostname-char-replacement
    - added to SHARED_NETWORK,SUBNET4

src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::processClientFqdn()
    Dhcpv6Srv::createNameChangeRequests()
    Dhcpv6Srv::updateReservedFqdn()
    - use cxt.getDdnsParams()

src/bin/dhcp6/json_config_parser.cc
    configureDhcp6Server()
    - use SrvConfig::moveDdnsParams() to move dhcp-ddns parameters
    - handle new "ddns-" globals

src/bin/dhcp6/tests/config_parser_unittest.cc
src/bin/dhcp6/tests/fqdn_unittest.cc
src/bin/dhcp6/tests/get_config_unittest.cc
    Updated tests
2019-10-10 08:34:39 -04:00
Thomas Markwalder
256feda606 [#35,!517] Rework kea-dhcp4 parsing and server
src/bin/dhcp4/ctrl_dhcp4_srv.cc
    Removed setting D2ClientCfg fetch function

src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
    ddns-send-updates
    ddns-override-no-update
    ddns-override-client-update
    ddns-replace-client-name
    ddns-generated-prefix
    ddns-qualifying-suffix
        - added to DHCP4,SHARED_NETWORK,SUBNET4

    hostname-char-set
    hostname-char-replacement
        - added to SHARED_NETWORK,SUBNET4

src/bin/dhcp4/dhcp4_srv.cc

    Dhcpv4Srv::processClientFqdnOption()
    Dhcpv4Srv::processHostnameOption()
    Dhcpv4Srv::assignLease()
        Use scoped DdnsParams from context to make decisions, pass
        into D2ClientMgr functions, and supply hostname sanitizer

src/bin/dhcp4/json_config_parser.cc
    configureDhcp4Server()
    - use SrvConfig::moveDdnsParams() to move dhcp-ddns parameters
    - handle new "ddns-" globals

src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/d2_unittest.cc
src/bin/dhcp4/tests/dhcp4_test_utils.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
src/bin/dhcp4/tests/get_config_unittest.cc
    Updated and new tests
2019-10-10 08:32:44 -04:00
Thomas Markwalder
77cfe4bc79 [#35,!517] Added getDdnsParams() to AllocEngine::ClientContext4/6
src/lib/dhcpsrv/alloc_engine.*
    AllocEngine::ClientContext6::getDdnsParams()
    AllocEngine::ClientContext4::getDdnsParams() - new
    methods which return a DdnsParams instance scoped by
    currently selected subnet

    Replaced direct references to context::ddns_params_ with
    new getter methods.

src/lib/dhcpsrv/parsers/simple_parser4.cc
src/lib/dhcpsrv/parsers/simple_parser6.cc
    Removed global defaults for hostname-char-set/replacement
2019-10-10 08:32:44 -04:00
Thomas Markwalder
6d6a3eed52 [#35,!517] Changed moveDdnsParams to modify element map instead of SrvConfig
Moving the parameters needs to be done before defaults are applied to the
config, so moveDdnsParams was changed to modify a mutable top level
element map instead of SrvConfig contents.

src/lib/dhcpsrv/parsers/simple_parser4.cc
src/lib/dhcpsrv/parsers/simple_parser6.cc
    Change ddns-send-updates default to true.

src/lib/dhcpsrv/srv_config.*
    SrvConfig::getConfiguredGlobal() - new method to fetch a
    global by name

    SrvConfig::moveDdnsParams() - changed to accept/modify
    a top-level Element map

src/lib/dhcpsrv/tests/srv_config_unittest.cc
    updated unit tests accordingly
2019-10-10 08:32:44 -04:00
Thomas Markwalder
d3eda7f2f9 [#35,!517] Added function to move of DDNS cfg elements to global scope to SrvConfig
src/lib/dhcpsrv/dhcpsrv_messages.*
    DHCPSRV_CFGMGR_DDNS_PARAMETER_IGNORED
    DHCPSRV_CFGMGR_DDNS_PARAMETER_MOVED

src/lib/dhcpsrv/srv_config.*
    SrvConfig::moveDdnsParams() - new method to move
    parameters from dhcp-ddns to configured globals.

src/lib/dhcpsrv/tests/srv_config_unittest.cc
    TEST_F(SrvConfigTest, moveDdnsParamsTest) - new test
2019-10-10 08:32:44 -04:00
Thomas Markwalder
590767d4d6 [#35,!517] Added hostname-char-set to hostname-char-replacement network/subnet scopes
src/lib/dhcpsrv/d2_client_cfg.*
    Added hostname-char-set and hostname-char-replacement to DdnsParms
    DdnsParams::getHostnameSanitizer()  - new function to return a sanitizer

src/lib/dhcpsrv/d2_client_mgr.h
    D2ClientMgr::adjustDomainName() - now gets sanitizer from ddns_params

src/lib/dhcpsrv/network.*
src/lib/dhcpsrv/parsers/base_network_parser.cc
src/lib/dhcpsrv/parsers/simple_parser4.cc
src/lib/dhcpsrv/parsers/simple_parser6.cc
    Added hostname-char-set and hostname-char-replacement to networks and subnets
2019-10-10 08:32:44 -04:00
Thomas Markwalder
f0d9fef2bd [#35,!517] Added fetch of scoped DDNS parameters to SrvConfig
src/lib/dhcpsrv/srv_config.*
    SrvConfig::getDdnsParams() - new method to fetch
    scoped DDNS parameters based on a given subnet

src/lib/dhcpsrv/tests/srv_config_unittest.cc
    TEST_F(SrvConfigTest, getDdnsParamsTest4)
    TEST_F(SrvConfigTest, getDdnsParamsTest6) - new tests
2019-10-10 08:32:44 -04:00
Thomas Markwalder
e782a9d5a7 [#35,!517] Added DDDNS parameters to networks,subnets, and their parsers
src/lib/dhcpsrv/network.*
    Network - added DDNS parameters: Optional members, getters, setters
    Network::toElement() - added DDNS parameters

src/lib/dhcpsrv/parsers/base_network_parser.*
    BaseNetworkParser::parseDdnsParams() - new method to parse DDNS parameters

    BaseNetworkParser::parseLifetime() - fixed unitialized variables warning

src/lib/dhcpsrv/parsers/dhcp_parsers.cc
    Subnet4ConfigParser::initSubnet()
    Subnet6ConfigParser::initSubnet()  - added call to parseDdnsParms().

src/lib/dhcpsrv/parsers/shared_network_parser.cc
    SharedNetwork4Parser::parse()
    SharedNetwork6Parser::parse() - added call to parseDdnsParms().

src/lib/dhcpsrv/parsers/simple_parser4.cc
    SimpleParser4::GLOBAL4_PARAMETERS
    SimpleParser4::GLOBAL4_DEFAULTS
    SimpleParser4::SUBNET4_PARAMETERS
    SimpleParser4::INHERIT_TO_SUBNET4
    SimpleParser4::SHARED_NETWORK4_PARAMETERS - added DDNS parameters

src/lib/dhcpsrv/parsers/simple_parser6.cc
    SimpleParser6::GLOBAL6_PARAMETERS
    SimpleParser6::GLOBAL6_DEFAULTS
    SimpleParser6::SUBNET6_PARAMETERS
    SimpleParser6::INHERIT_TO_SUBNET6
    SimpleParser6::SHARED_NETWORK6_PARAMETERS - added DDNS parameters

src/lib/dhcpsrv/tests/cfg_shared_networks4_unittest.cc
src/lib/dhcpsrv/tests/cfg_shared_networks6_unittest.cc
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
src/lib/dhcpsrv/tests/network_unittest.cc
src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
src/lib/dhcpsrv/tests/shared_network_unittest.cc
src/lib/dhcpsrv/tests/subnet_unittest.cc
    Updated tests.
2019-10-10 08:32:44 -04:00
Thomas Markwalder
4f57cfa254 [#35,!517] Removed DDNS params from D2ClientCfg and tests
src/lib/dhcpsrv/d2_client_cfg.*
    D2ClientConfig - removed DDNS params

src/lib/dhcpsrv/parsers/dhcp_parsers.cc
    D2ClientConfigParser::parse() - removed DDNS params

src/lib/dhcpsrv/parsers/simple_parser4.cc
    SimpleParser4::GLOBAL4_PARAMETERS
    SimpleDefaults SimpleParser4::GLOBAL4_DEFAULTS
    - added DDSN params

src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
    Updated calls to D2ClientCfg ctor

src/lib/dhcpsrv/tests/d2_client_unittest.cc
    Removed DDNS and hostname params from tests

src/lib/dhcpsrv/tests/d2_udp_unittest.cc
    Updated calls to D2ClientCfg ctor

src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
    Removed DDNS and hostname params from tests
2019-10-10 08:32:44 -04:00
Thomas Markwalder
b767f9446e [#35,!517] Modify D2ClientMgr functions to accept DdnsParams parameter
D2ClientMgr functions now get behavior parameters from a passed in
structure instead of D2ClientMgr::d2_client_config_.

src/lib/dhcpsrv/d2_client_cfg.h
    struct DdnsParams  - new structure to convey request specific
    (i.e.scopable) Ddns params

src/lib/dhcpsrv/alloc_engine.cc
src/lib/dhcpsrv/alloc_engine.h
    Added ddns_params_ to ClientContext4/6

src/lib/dhcpsrv/d2_client_mgr.*
    D2ClientMgr::adjustFqdnFlags()
    D2ClientMgr::adjustDomainName()
    D2ClientMgr::analyzeFqdn()
    D2ClientMgr::generateFqdn()
    D2ClientMgr::qualifyName() - now accept DdnsParams instance as
    parameter

src/lib/dhcpsrv/tests/d2_client_unittest.cc
    Reworked tests to use DdnsParams
2019-10-10 08:32:44 -04:00
Francis Dupont
cf6a766d28 [751-compiler-warning-in-ifacemgr-unit-tests] Addressed iface_mgr_unittest.cc warnings tmark-pre-35 2019-10-07 20:27:39 +02:00
Michal Nowikowski
e0e0fd462e hammer: fixed ccache for alpine 2019-10-01 06:12:53 +02:00
Michal Nowikowski
3d5980d403 hammer: fixed missing variable repository_url 2019-09-30 11:13:02 +02:00
Michal Nowikowski
34ae3d1fc2 [hammer] added support for building kea on alpine and producing apk packages 2019-09-27 09:18:04 -04:00
Francis Dupont
a96b4286ce [907-remove-kea-thread-library] Added ChangeLog entry for util thread final removal 2019-09-27 11:09:30 +02:00
Francis Dupont
1b27dc52aa [907-remove-kea-thread-library] Fixed typo left by a previous MR review 2019-09-27 11:07:21 +02:00
Francis Dupont
5a36558f35 [907-remove-kea-thread-library] Addressed comments 2019-09-27 11:07:21 +02:00
Francis Dupont
366f36ecea [907-remove-kea-thread-library] Finished netconf 2019-09-27 11:07:21 +02:00
Francis Dupont
469f43a828 [907-remove-kea-thread-library] Checkpoint (todo finish netconf) 2019-09-27 11:07:21 +02:00
Francis Dupont
984c2b6cff [918-check-c-11-thread-support-in-configure] Added ChangeLog entry for thread & co checks 2019-09-27 10:29:13 +02:00
Francis Dupont
baf4097520 [918-check-c-11-thread-support-in-configure] Added check for condition variable 2019-09-27 10:23:34 +02:00
Francis Dupont
adbcc263c0 [918-check-c-11-thread-support-in-configure] Ran tabify 2019-09-27 10:23:34 +02:00
Francis Dupont
32a02fd254 [918-check-c-11-thread-support-in-configure] Added checks for C++11 thread, mutex and atomic 2019-09-27 10:23:34 +02:00
Thomas Markwalder
61dea6eeb3 [#917,!518] Updated ChangeLog 2019-09-26 09:34:26 -04:00
Thomas Markwalder
f242e5c2e0 [#917,!518] Fixed links in new ARM note.
doc/sphinx/arm/config-backend.rst
2019-09-26 09:31:54 -04:00
Thomas Markwalder
d57a65b42d [#917,!518] Added ChangeLog entry 2019-09-26 09:08:13 -04:00
Thomas Markwalder
b9e8499456 [#917,!518] Added note in ARM about manually admining cb data
doc/sphinx/arm/config-backend.rst
2019-09-26 09:04:53 -04:00
Michal Nowikowski
9084e8f47e bumped kea version to 1.7.1 2019-09-26 13:27:55 +02:00
Franciszek
24d3510b5e [915_time_unit_of_duration_parameter_is_not_defined] define time unit of duration parameter 2019-09-26 03:44:33 -04:00
Vicky Risk
b23c88e298 Update CONTRIBUTING.md - remove references to Jenkins Kea-1.7.0 2019-09-24 13:44:17 -04:00
Thomas Markwalder
5218ed69b3 [#924,!526] Updated ChangeLog entry 2019-09-24 13:19:47 -04:00
Thomas Markwalder
c4061d0fdd [#924,!526] Added ChangeLog entry 2019-09-24 11:39:17 -04:00
Thomas Markwalder
1c2f0efa6a [#924,!526] Bumped library version numbers for 1.7.0 2019-09-24 11:04:42 -04:00
Michal Nowikowski
a539c65a41 updated ChangeLog and copyright dates 2019-09-23 09:40:35 -04:00
Michal Nowikowski
22dfd2b69a ARM: updated list of supported systems 2019-09-23 15:05:32 +02:00
Francis Dupont
3cbd57e4aa [master] Fixed typo 2019-09-20 16:47:04 +02:00
Francis Dupont
c4d3cab85b [914-move-to-c-11-thread-library-in-core-library-code] Addressed a comment 2019-09-20 09:21:28 -04:00
Francis Dupont
53e956d8de [914-move-to-c-11-thread-library-in-core-library-code] Upgraded thread/mutex code in the core library to C++11 2019-09-20 09:21:28 -04:00
Francis Dupont
258f0c51f0 [168-config-manager-clear-does-not-clear-the-d2-client-config-full-clear] Fixed unit tests using previous CfgMgr clear() behavior 2019-09-20 02:44:56 -04:00
Francis Dupont
c1594d884b [168-config-manager-clear-does-not-clear-the-d2-client-config-full-clear] Changed CfgMgr clear() to reset D2ClientConfig 2019-09-20 02:44:56 -04:00
Razvan Becheriu
704db7fab8 [#766, !449] updated ChangeLog 2019-09-19 15:00:44 +03:00
Razvan Becheriu
e1a236fa4f [#766, !449] addressed gitlab ci indications 2019-09-19 14:56:57 +03:00
Razvan Becheriu
d3d8042412 [#766, !449] detect sysrepo version 2019-09-19 14:56:57 +03:00
Michal Nowikowski
eb4baca66e [hammer] updated freeradius-client isc version in dependencies 2019-09-17 12:23:22 +02:00
Francis Dupont
571e5d425b [345-drop-botan-1-x-support] Added ChangeLog entry for Botan 1.x support removal 2019-09-13 16:10:26 +02:00
Francis Dupont
ba028eee98 [345-drop-botan-1-x-support] Removed Botan 1.x support 2019-09-13 16:06:39 +02:00
Marcin Siodelski
f07587f8c6 [#796,!504] Added ChangeLog entry for #796. 2019-09-09 15:37:11 +02:00