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

28568 Commits

Author SHA1 Message Date
Francis Dupont
93cd62c99f [498-pkg-config-usage-in-kea-libs-is-wrong] Got rid of dns++.pc 2019-03-11 11:11:24 -04:00
Francis Dupont
3e930eb348 [master] regen all bison files 2019-03-11 13:07:38 +00:00
Francis Dupont
765d73d6be [486-no-longer-use-bison-is-yacc-emulation-mode] Changed from AC_PROG_YACC 2019-03-11 08:48:40 -04:00
Francis Dupont
cb3e2d5010 [486-no-longer-use-bison-is-yacc-emulation-mode] Improved LEX check 2019-03-11 08:48:40 -04:00
Thomas Markwalder
e34fbdb485 Merge branch '401-merge-dhcpv4-options-fetched-from-the-cb-into-the-configuration' of gitlab.isc.org:isc-projects/kea into 401-merge-dhcpv4-options-fetched-from-the-cb-into-the-configuration 2019-03-08 19:37:26 -05:00
Thomas Markwalder
65f8e39cd9 [#401,!24] Addressed most review comments
This commit addresse the more trivial review
    comments, it does not include option creation
    for networks,subnets, or pools.

    Will rebase and address remaining comments.
2019-03-08 16:43:52 -05:00
Thomas Markwalder
e0481e0548 [#401,!254] kea-dhcp4 now merges in options from config backend
src/lib/dhcpsrv/cfg_option.*
    CfgOption::merge() - new function which merges a given set
    of option descriports into the existing set

    CfgOption::createDescriptorOption - new function that uses an
    option definition factory to create a descriptor's option instance

src/lib/dhcpsrv/tests/cfg_option_unittest.cc
    TEST_F(CfgOptionTest, validMerge)
    TEST_F(CfgOptionTest, invalidMerge) - new tests
2019-03-08 16:43:52 -05:00
Thomas Markwalder
1a663d09e4 [#401,!254] kea-dhcp4 now merges CB options into current config
Basic merging works, need to add validation against definitions.

src/bin/dhcp4/tests/config_backend_unittest.cc
    TEST_F(Dhcp4CBTest, mergeOptions) - enabled and updated

src/lib/dhcpsrv/cfg_option.*
    CfgOption::merge(CfgOption& other) - new method, conformant
    to others, that merges/updates a config option from another

src/lib/dhcpsrv/srv_config.cc
    SrvConfig::merge4(SrvConfig& other) - modified to
    merge configured options

src/lib/dhcpsrv/tests/cfg_option_unittest.cc
    TEST_F(CfgOptionTest, merge) - new test
2019-03-08 16:43:52 -05:00
Thomas Markwalder
af7fbbe37f [#401,!24] Addressed most review comments
This commit addresse the more trivial review
    comments, it does not include option creation
    for networks,subnets, or pools.

    Will rebase and address remaining comments.
2019-03-08 16:39:19 -05:00
Thomas Markwalder
6af5e78ec8 [#526,!269] - MySQL unit tests now wipe data, instead of schema
src/share/database/scripts/mysql/wipe_data.sh.in -
    New shell script which intelligently deletes data from
    the schema IF the schema version matches the expected version

src/lib/mysql/testutils/mysql_schema.*
    destroyMySQLSchema() - modfied to default to calling
    wipeData(), and only destroying the schema if that fails
    or by force flag = true;

    createMySQLSchema() - modified to default to calling
    wipeData(), and only recreating the schema if that
    fails or by force flag = true;

    wipeData() - new method which runs the
    MySQL wipe_data.sh shell script, passing in the expected
    schema version.

src/share/database/scripts/mysql/dhcpdb_create.mysql
    createAuditRevisionDHCP4()
    createAuditEntryDHCP4()
    createAuditRevisionDHCP6()
    createAuditEntryDHCP6() - added session variable,
    @disable_audit, to allow procedures to be "turned
    off" during data wiping.

src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_mgr_unittest.cc
src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_unittest.cc
src/lib/dhcpsrv/tests/cfg_db_access_unittest.cc
src/lib/dhcpsrv/tests/host_mgr_unittest.cc
src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    Removed calls to destroy schema from test constructors
2019-03-08 12:09:14 -05:00
Francis Dupont
723efb56e8 [499-global-keywords-entries] Added global parameter lists 494-dhcp4configparser-sharednetworkssanitychecks-is-buggy_base 498-pkg-config-usage-in-kea-libs-is-wrong_base 519-dhcp-server-response-an-empty-rai-field_base 509-improve-disabling-client-id-lookup_base 2019-03-07 10:50:34 -05:00
Marcin Siodelski
b5f499e42a [master] Added ChangeLog entry for #488. 2019-03-07 14:51:45 +01:00
Marcin Siodelski
d3b3305865 [#488,!259] Updated get_config_unittests for v4. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
076e366345 [#488,!259] Parse siaddr, sname and boot-file-name in shared network parser. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
f3400b9872 [#488,!259] Rename parameters in the base network parser. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
bf57715611 [#488,!259] Test authoritative flag in MySQL CB. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
9073277c3f [#488,!259] Added support for boot file, next_server and sname to MySQL CB. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
da92b4e9e3 [#488,!259] Added sname, next-server and boot-file-name to MySQL schema. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
3875af038a [#488,!259] Subnet's and Network's toElement do not output optionals. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
09c5653d82 [#488,!259] Extracted common parsing functions to a new class. 2019-03-07 08:00:36 -05:00
Marcin Siodelski
e54dfbedc6 [#488,!259] Regenerated get_config_unittests for v4 and corrected issues. 2019-03-07 08:00:35 -05:00
Marcin Siodelski
fdcced6640 [#488,!259] Correct unit tests failing after recent code updates. 2019-03-07 08:00:35 -05:00
Marcin Siodelski
434b93940c [#488,!259] Added support for authoritative flag in MySQL CB. 2019-03-07 08:00:35 -05:00
Marcin Siodelski
f29512b100 [#488] Shared network parser stores parsed parameters in the object. 2019-03-07 08:00:35 -05:00
Marcin Siodelski
a63eae7463 [#488] DHCP subnet and network parsers allow unspecified parameters. 2019-03-07 08:00:35 -05:00
Marcin Siodelski
1f7890d87e [master] Removed trailing comma in the default kea-dhcp-ddns config.
Okayed on jabber.
465-add-subnet4-update-and-subnet6-update-commands-to-subnet-cmds-hook_base2
2019-03-07 13:59:24 +01:00
Michal Nowikowski
0e022846de improved Sandbox class comments 2019-03-07 12:18:03 +01:00
Michal Nowikowski
abf5e00c0b removed unnecessary includes 2019-03-07 12:08:16 +01:00
Marcin Siodelski
c38bb7e812 [#357,!258] Added space after return. 2019-03-07 11:52:08 +01:00
Michal Nowikowski
1dfd132893 replaced throwing exception in destructor with a trace and exit(1) 2019-03-07 10:59:29 +01:00
Michal Nowikowski
fee053c548 changes after review: updated comments and did other small improvements 2019-03-07 10:59:29 +01:00
Michal Nowikowski
a45e2f68d7 Changed location of unit socket in unit tests
Previously it was stored in TEST_DATA_BUILDDIR which resides inside repo sources.
Due to the fact that when repo was located in deep patch creating socket was
failing as max socket patch is about 100 characters. Now it is located
in temp folder managed by Sandbox class. The sandbox directory is created
in test constructor and deleted in destructor. As the temp directory
is in form /tmp/kea-XXXXXX the lnegth is always lower than 1000, so running
the unit tests never fails.
2019-03-07 10:57:33 +01:00
Francis Dupont
41f40b7dc6 [478-improve-error-message-database-backend-mysql] Reviewed changes and addressed comments 2019-03-06 15:25:23 -05:00
Tomek Mrugalski
1a723bf02b [#478,!249] Added extra log error message. 2019-03-06 15:25:23 -05:00
Francis Dupont
6f6b59fb62 [478-improve-error-message-database-backend-mysql] Better message for not built lease database type 2019-03-06 15:25:23 -05:00
Thomas Markwalder
3d838cbcb7 [#401,!254] kea-dhcp4 now merges in options from config backend
src/lib/dhcpsrv/cfg_option.*
    CfgOption::merge() - new function which merges a given set
    of option descriports into the existing set

    CfgOption::createDescriptorOption - new function that uses an
    option definition factory to create a descriptor's option instance

src/lib/dhcpsrv/tests/cfg_option_unittest.cc
    TEST_F(CfgOptionTest, validMerge)
    TEST_F(CfgOptionTest, invalidMerge) - new tests
2019-03-06 13:26:01 -05:00
Tomek Mrugalski
db5783548a [#471] Hammer docs updated 2019-03-06 09:27:57 -05:00
Tomek Mrugalski
f77a7e200a [#480] ChangeLog updated 2019-03-06 15:18:53 +01:00
Francis Dupont
8818ba0260 [480-shellcheck] Addressed SC2231 extra warnings 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
9d4311df8f Fixed execution of find command 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
bc60700bd5 ! -z replaced with -n 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
68b9a89ccd Removed SC2046 disables and added nested double quotes instead. 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
6cb34f89ec Another ! -z replaced with -n 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
3ff512a163 Replaced ! -z with -n 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
1e4c6b5cad Converted sysrepo_config: bash -> sh 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
d6d0e6d483 Copyright headers added. Addressed 3 remaining shellcheck issues. 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
5bc2811a55 Remaining warnings in kea-admin and keactrl addressed. 2019-03-06 09:15:29 -05:00
Francis Dupont
81b7a46741 [480-shellcheck] Updated copyright years 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
01c78272c7 List of scripts to check fixed. 2019-03-06 09:15:29 -05:00
Tomek Mrugalski
6f440c6e48 sysrepo_config cleaned up 2019-03-06 09:15:29 -05:00