mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 15:35:17 +00:00
[5031] Hooks parser now detects if hooksmgr failed to load libraries.
This commit is contained in:
@@ -357,7 +357,9 @@ HooksLibrariesParser::loadLibraries() {
|
|||||||
/// the list of libraries has changed.
|
/// the list of libraries has changed.
|
||||||
/// @todo: Delete any stored CalloutHandles before reloading the
|
/// @todo: Delete any stored CalloutHandles before reloading the
|
||||||
/// libraries
|
/// libraries
|
||||||
HooksManager::loadLibraries(libraries_);
|
if (!HooksManager::loadLibraries(libraries_)) {
|
||||||
|
isc_throw(DhcpConfigError, "One or more hook libraries failed to load");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Method for testing
|
// Method for testing
|
||||||
|
@@ -496,10 +496,13 @@ public:
|
|||||||
|
|
||||||
/// @brief Commits hooks libraries data
|
/// @brief Commits hooks libraries data
|
||||||
///
|
///
|
||||||
/// This method calls necessary methods in HooksManager that will load the
|
/// This method calls necessary methods in HooksManager that will unload
|
||||||
/// actual libraries. Providing that the specified libraries are valid and are different
|
/// any libraries that may be currently loaded and will load the actual
|
||||||
/// to those already loaded, this method loads the new set of libraries
|
/// libraries. Providing that the specified libraries are valid and are
|
||||||
/// (and unloads the existing set).
|
/// different to those already loaded, this method loads the new set of
|
||||||
|
/// libraries (and unloads the existing set).
|
||||||
|
///
|
||||||
|
/// @throw DhcpConfigError if the call to HooksManager fails.
|
||||||
void loadLibraries();
|
void loadLibraries();
|
||||||
|
|
||||||
/// @brief Returns list of parsed libraries
|
/// @brief Returns list of parsed libraries
|
||||||
|
Reference in New Issue
Block a user