Skip to content

Commit 3bf0079

Browse files
Razvan Becheriufxdupont
Razvan Becheriu
authored andcommitted
[#2101] addressed review comments
1 parent 45ff8e1 commit 3bf0079

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

Diff for: ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2315. [func] razvan
2+
Kea can now load hook libraries specifying only the binary name.
3+
It uses the default hook libraries installation path which is
4+
provided in the config report as "Hooks directory".
5+
(Gitlab #2101, #3579)
6+
17
2314. [func] tmark
28
Added three new parameters which may be used to
39
influence DNS TTL to kea-dhcp4 and kea-dhcp6:

Diff for: doc/sphinx/arm/hooks.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,10 @@ configuration would be:
213213
because the parameters specified for the library (or the files those
214214
parameters point to) may have changed.
215215

216-
Since Kea-2.7.5, the server is able to load hooks specified only by name, if
217-
they reside in the default install location (the path is OS specific).
216+
Since Kea-2.7.6, the server is able to load hook libraries specifying only the binary name,
217+
if they reside in the default installation directory (the path is OS specific).
218+
The default hook libraries installation path is provided in the config report as
219+
"Hooks directory".
218220

219221
::
220222

Diff for: src/lib/hooks/hooks_parser.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class HooksLibrariesParser : public isc::data::SimpleParser {
5858
/// @param value pointer to the content to be parsed
5959
void parse(HooksConfig& libraries, isc::data::ConstElementPtr value);
6060

61-
/// @brief The default installation path for hooks, used to generate full
62-
/// path if only the hook name is provided.
61+
/// @brief The default installation path for hook libraries, used to generate
62+
/// full path if only the hook library binary name is provided.
6363
static std::string default_hooks_path_;
6464
};
6565

Diff for: src/lib/process/cfgrpt/tests/config_report_unittests.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ TEST(ConfigReportTest, getConfigReport) {
2727
ASSERT_FALSE(cfgReport.empty());
2828
EXPECT_NE(std::string::npos, cfgReport.find(VERSION));
2929
EXPECT_NE(std::string::npos, cfgReport.find(EXTENDED_VERSION));
30-
EXPECT_NE(std::string::npos, cfgReport.find(HooksLibrariesParser::default_hooks_path_));
30+
EXPECT_NE(std::string::npos, cfgReport.find(std::string("Hooks directory: ") +
31+
HooksLibrariesParser::default_hooks_path_));
3132
}

0 commit comments

Comments
 (0)