} catch (const std::exception& ex) {
err << "Error initializing the lease allocators: "
<< ex.what();
+ return (isc::config::createAnswer(CONTROL_RESULT_ERROR, err.str()));
}
// Apply multi threading settings.
return (isc::config::createAnswer(CONTROL_RESULT_ERROR, err.str()));
}
+ /// Let postponed hook initializations to run.
+ try {
+ ControlledDhcpv4Srv::getInstance()->getIOService()->poll();
+ } catch (const std::exception& ex) {
+ err << "Error initializing hooks: "
+ << ex.what();
+ return (isc::config::createAnswer(CONTROL_RESULT_ERROR, err.str()));
+ }
+
return (answer);
}
CfgMgr::instance().getStagingCfg()->getCfgSubnets6()->initAllocatorsAfterConfigure();
} catch (const std::exception& ex) {
- err << "Error initializing the lease allocators: " << ex.what();
+ err << "Error initializing the lease allocators: "
+ << ex.what();
+ return (isc::config::createAnswer(CONTROL_RESULT_ERROR, err.str()));
}
// Apply multi threading settings.
return (isc::config::createAnswer(CONTROL_RESULT_ERROR, err.str()));
}
+ /// Let postponed hook initializations to run.
+ try {
+ ControlledDhcpv6Srv::getInstance()->getIOService()->poll();
+ } catch (const std::exception& ex) {
+ err << "Error initializing hooks: "
+ << ex.what();
+ return (isc::config::createAnswer(CONTROL_RESULT_ERROR, err.str()));
+ }
+
return (answer);
}