16 #include <boost/foreach.hpp> 17 #include <boost/lexical_cast.hpp> 18 #include <boost/algorithm/string.hpp> 40 DCfgMgrBase::~DCfgMgrBase() {
44 DCfgMgrBase::resetContext() {
61 const std::function<
void()>& post_config_cb) {
64 std::string(
"Can't parse NULL config")));
67 DCTL_CONFIG_START).arg(config_set->str());
83 answer = parse(config_set, check_only);
103 .arg(getConfigSummary(0))
107 }
catch (
const std::exception& ex) {
112 context_ = original_context;
119 context_ = original_context;
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
ConstElementPtr createAnswer(const int status_code, const std::string &text, const ConstElementPtr &arg)
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
isc::log::Logger dctl_logger("dctl")
Defines the logger used within libkea-process library.
boost::shared_ptr< Element > ElementPtr
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
std::string answerToText(const ConstElementPtr &msg)
Exception thrown if the configuration manager encounters an error.
boost::shared_ptr< const Element > ConstElementPtr
ConstElementPtr parseAnswer(int &rcode, const ConstElementPtr &msg)
Defines the logger used by the top-level component of kea-dhcp-ddns.
This file contains several functions and constants that are used for handling commands and responses ...
const int DBGLVL_COMMAND
This debug level is reserved for logging the exchange of messages/commands between processes,...
#define LOG_DEBUG(LOGGER, LEVEL, MESSAGE)
Macro to conveniently test debug output and log it.
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the SrvConfig.