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

[3590] Hook libraries information is now stored in SrvConfig

This commit is contained in:
Tomek Mrugalski
2017-02-23 19:16:49 +01:00
parent 2f45d13a26
commit 7f62f7f11e
3 changed files with 27 additions and 0 deletions

View File

@@ -515,6 +515,11 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set) {
if (config_pair.first == "hooks-libraries") {
hooks_parser.parse(config_pair.second);
hooks_parser.verifyLibraries();
// We need to store hooks information in the configuration.
hooks::HookLibsCollection libs;
hooks_parser.getLibraries(libs);
srv_cfg->setLibraries(libs);
continue;
}