43 }
catch (
const std::exception& ex) {
66 }
catch (
const std::exception& ex) {
94 }
catch (
const std::exception& ex) {
124 }
catch (
const std::exception& ex) {
154 }
catch (
const std::exception& ex) {
184 }
catch (
const std::exception& ex) {
214 }
catch (
const std::exception& ex) {
244 }
catch (
const std::exception& ex) {
274 }
catch (
const std::exception& ex) {
304 }
catch (
const std::exception& ex) {
334 }
catch (
const std::exception& ex) {
364 }
catch (
const std::exception& ex) {
394 }
catch (
const std::exception& ex) {
424 }
catch (
const std::exception& ex) {
453 }
catch (
const std::exception& ex) {
476 }
catch (
const std::exception& ex) {
504 }
catch (
const std::exception& ex) {
534 }
catch (
const std::exception& ex) {
564 }
catch (
const std::exception& ex) {
594 }
catch (
const std::exception& ex) {
624 }
catch (
const std::exception& ex) {
654 }
catch (
const std::exception& ex) {
684 }
catch (
const std::exception& ex) {
714 }
catch (
const std::exception& ex) {
744 }
catch (
const std::exception& ex) {
774 }
catch (
const std::exception& ex) {
795 if (family == AF_INET) {
796 if (proc_name !=
"kea-dhcp4") {
798 <<
", expected kea-dhcp4");
801 if (proc_name !=
"kea-dhcp6") {
803 <<
", expected kea-dhcp6");
840 }
catch (
const std::exception& ex) {
A generic exception that is thrown when an unexpected error condition occurs.
uint16_t getFamily() const
Returns address family.
static CfgMgr & instance()
returns a single instance of Configuration Manager
Per-packet callout handle.
void getArgument(const std::string &name, T &value) const
Get argument.
void setArgument(const std::string &name, T value)
Set argument.
void registerCommandCallout(const std::string &command_name, CalloutPtr callout)
Register control command handler.
static std::string getProcName()
returns the process name This value is used as when forming the default PID file name
Implements the logic for processing commands pertaining to subnets manipulation.
This file contains several functions and constants that are used for handling commands and responses ...
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
const int CONTROL_RESULT_ERROR
Status code indicating a general failure.
std::string parseCommand(ConstElementPtr &arg, ConstElementPtr command)
Parses the given command into a string containing the actual command and an ElementPtr containing the...
ConstElementPtr createAnswer()
Creates a standard config/command level success answer message (i.e.
boost::shared_ptr< const Element > ConstElementPtr
const isc::log::MessageID SUBNET_CMDS_NETWORK6_SUBNET_ADD_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET6_DELTA_DEL_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET6_DEL_FAILED
const isc::log::MessageID SUBNET_CMDS_NETWORK6_DEL_FAILED
const isc::log::MessageID SUBNET_CMDS_NETWORK4_SUBNET_ADD_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET4_GET_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET4_DELTA_ADD_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET4_DELTA_DEL_FAILED
const isc::log::MessageID SUBNET_CMDS_NETWORK4_SUBNET_DEL_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET4_ADD_FAILED
const isc::log::MessageID SUBNET_CMDS_NETWORK4_GET_FAILED
const isc::log::MessageID SUBNET_CMDS_NETWORK6_SUBNET_DEL_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET6_ADD_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET6_GET_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET4_DEL_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET6_DELTA_ADD_FAILED
const isc::log::MessageID SUBNET_CMDS_INIT_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET4_LIST_FAILED
const isc::log::MessageID SUBNET_CMDS_NETWORK4_DEL_FAILED
const isc::log::MessageID SUBNET_CMDS_NETWORK4_LIST_FAILED
const isc::log::MessageID SUBNET_CMDS_INIT_OK
const isc::log::MessageID SUBNET_CMDS_NETWORK6_LIST_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET6_LIST_FAILED
const isc::log::MessageID SUBNET_CMDS_DEINIT_OK
const isc::log::MessageID SUBNET_CMDS_NETWORK6_ADD_FAILED
isc::log::Logger subnet_cmds_logger("subnet-cmds-hooks")
const isc::log::MessageID SUBNET_CMDS_SUBNET6_UPDATE_FAILED
const isc::log::MessageID SUBNET_CMDS_NETWORK4_ADD_FAILED
const isc::log::MessageID SUBNET_CMDS_NETWORK6_GET_FAILED
const isc::log::MessageID SUBNET_CMDS_SUBNET4_UPDATE_FAILED
int network4_subnet_del(CalloutHandle &handle)
This is a command handler for 'network4-subnet-del' command.
int subnet6_list(CalloutHandle &handle)
This is a command handler for 'subnet6-list' command.
int network4_get(CalloutHandle &handle)
This is a command handler for 'network4-get' command.
int network6_subnet_add(CalloutHandle &handle)
This is a command handler for 'network6-subnet-add' command.
int subnet6_del(CalloutHandle &handle)
This is a command handler for 'subnet6-del' command.
int network4_list(CalloutHandle &handle)
This is a command handler for 'network4-list' command.
int subnet6_update(CalloutHandle &handle)
This is a command handler for 'subnet6-update' command.
int subnet6_delta_del(CalloutHandle &handle)
This is a command handler for 'subnet6-delta-del' command.
int subnet4_del(CalloutHandle &handle)
This is a command handler for 'subnet4-del' command.
int network6_del(CalloutHandle &handle)
This is a command handler for 'network6-del' command.
int multi_threading_compatible()
This function is called to retrieve the multi-threading compatibility.
int network4_add(CalloutHandle &handle)
This is a command handler for 'network4-add' command.
int network6_list(CalloutHandle &handle)
This is a command handler for 'network6-list' command.
int network6_get(CalloutHandle &handle)
This is a command handler for 'network4-get' command.
int network6_subnet_del(CalloutHandle &handle)
This is a command handler for 'network6-subnet-del' command.
int subnet6_delta_add(CalloutHandle &handle)
This is a command handler for 'subnet6-delta-add' command.
int subnet6_add(CalloutHandle &handle)
This is a command handler for 'subnet6-add' command.
int subnet4_delta_del(CalloutHandle &handle)
This is a command handler for 'subnet4-delta-del' command.
int subnet6_get(CalloutHandle &handle)
This is a command handler for 'subnet4-get' command.
int unload()
This function is called when the library is unloaded.
int network4_del(CalloutHandle &handle)
This is a command handler for 'network4-del' command.
int network4_subnet_add(CalloutHandle &handle)
This is a command handler for 'network4-subnet-add' command.
int subnet4_delta_add(CalloutHandle &handle)
This is a command handler for 'subnet4-delta-add' command.
int network6_add(CalloutHandle &handle)
This is a command handler for 'network6-add' command.
int subnet4_list(CalloutHandle &handle)
This is a command handler for 'subnet4-list' command.
int subnet4_update(CalloutHandle &handle)
This is a command handler for 'subnet4-update' command.
int subnet4_get(CalloutHandle &handle)
This is a command handler for 'subnet4-get' command.
int load(LibraryHandle &handle)
This function is called when the library is loaded.
int subnet4_add(CalloutHandle &handle)
This is a command handler for 'subnet4-add' command.