Kea 3.1.1
isc::subnet_cmds Namespace Reference

Classes

class  ConfigDiffManager
 Manager which handles the delta (differences) between two subnets serialized as a JSON tree (usually a user provided subnet configuration and an already existing subnet configuration). More...
 
class  SubnetCmds
 Implements the logic for processing commands pertaining to subnets manipulation. More...
 
class  SubnetCmdsImpl
 Implementation of the SubnetCmds class. More...
 

Enumerations

enum  UpdateType { UPDATE_REPLACE , UPDATE_DELTA_ADD , UPDATE_DELTA_DEL }
 Type of subnet update. More...
 

Variables

const isc::log::MessageID SUBNET_CMDS_DEINIT_OK = "SUBNET_CMDS_DEINIT_OK"
 
const isc::log::MessageID SUBNET_CMDS_INIT_FAILED = "SUBNET_CMDS_INIT_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_INIT_OK = "SUBNET_CMDS_INIT_OK"
 
isc::log::Logger subnet_cmds_logger ("subnet-cmds-hooks")
 
const isc::log::MessageID SUBNET_CMDS_NETWORK4_ADD_FAILED = "SUBNET_CMDS_NETWORK4_ADD_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK4_DEL_FAILED = "SUBNET_CMDS_NETWORK4_DEL_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK4_GET_FAILED = "SUBNET_CMDS_NETWORK4_GET_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK4_LIST_FAILED = "SUBNET_CMDS_NETWORK4_LIST_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK4_SUBNET_ADD_FAILED = "SUBNET_CMDS_NETWORK4_SUBNET_ADD_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK4_SUBNET_DEL_FAILED = "SUBNET_CMDS_NETWORK4_SUBNET_DEL_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK6_ADD_FAILED = "SUBNET_CMDS_NETWORK6_ADD_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK6_DEL_FAILED = "SUBNET_CMDS_NETWORK6_DEL_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK6_GET_FAILED = "SUBNET_CMDS_NETWORK6_GET_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK6_LIST_FAILED = "SUBNET_CMDS_NETWORK6_LIST_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK6_SUBNET_ADD_FAILED = "SUBNET_CMDS_NETWORK6_SUBNET_ADD_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK6_SUBNET_DEL_FAILED = "SUBNET_CMDS_NETWORK6_SUBNET_DEL_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK_ADD = "SUBNET_CMDS_NETWORK_ADD"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK_DEL = "SUBNET_CMDS_NETWORK_DEL"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK_GET = "SUBNET_CMDS_NETWORK_GET"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK_GET_EMPTY = "SUBNET_CMDS_NETWORK_GET_EMPTY"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK_LIST = "SUBNET_CMDS_NETWORK_LIST"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK_LIST_EMPTY = "SUBNET_CMDS_NETWORK_LIST_EMPTY"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK_SUBNET_ADD = "SUBNET_CMDS_NETWORK_SUBNET_ADD"
 
const isc::log::MessageID SUBNET_CMDS_NETWORK_SUBNET_DEL = "SUBNET_CMDS_NETWORK_SUBNET_DEL"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET4_ADD_FAILED = "SUBNET_CMDS_SUBNET4_ADD_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET4_DEL_FAILED = "SUBNET_CMDS_SUBNET4_DEL_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET4_DELTA_ADD_FAILED = "SUBNET_CMDS_SUBNET4_DELTA_ADD_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET4_DELTA_DEL_FAILED = "SUBNET_CMDS_SUBNET4_DELTA_DEL_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET4_GET_FAILED = "SUBNET_CMDS_SUBNET4_GET_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET4_LIST_FAILED = "SUBNET_CMDS_SUBNET4_LIST_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET4_UPDATE_FAILED = "SUBNET_CMDS_SUBNET4_UPDATE_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET6_ADD_FAILED = "SUBNET_CMDS_SUBNET6_ADD_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET6_DEL_FAILED = "SUBNET_CMDS_SUBNET6_DEL_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET6_DELTA_ADD_FAILED = "SUBNET_CMDS_SUBNET6_DELTA_ADD_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET6_DELTA_DEL_FAILED = "SUBNET_CMDS_SUBNET6_DELTA_DEL_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET6_GET_FAILED = "SUBNET_CMDS_SUBNET6_GET_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET6_LIST_FAILED = "SUBNET_CMDS_SUBNET6_LIST_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET6_UPDATE_FAILED = "SUBNET_CMDS_SUBNET6_UPDATE_FAILED"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET_ADD = "SUBNET_CMDS_SUBNET_ADD"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET_DEL = "SUBNET_CMDS_SUBNET_DEL"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET_GET = "SUBNET_CMDS_SUBNET_GET"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET_GET_EMPTY = "SUBNET_CMDS_SUBNET_GET_EMPTY"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET_LIST = "SUBNET_CMDS_SUBNET_LIST"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET_LIST_EMPTY = "SUBNET_CMDS_SUBNET_LIST_EMPTY"
 
const isc::log::MessageID SUBNET_CMDS_SUBNET_UPDATE = "SUBNET_CMDS_SUBNET_UPDATE"
 

Enumeration Type Documentation

◆ UpdateType

Type of subnet update.

Enumerator
UPDATE_REPLACE 

completely replace old subnet with the new entry.

UPDATE_DELTA_ADD 

update the old subnet by adding the parameters form the new entry.

UPDATE_DELTA_DEL 

update the old subnet by removing the parameters from the new entry.

Definition at line 35 of file subnet_cmds.cc.

Variable Documentation

◆ SUBNET_CMDS_DEINIT_OK

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_DEINIT_OK = "SUBNET_CMDS_DEINIT_OK"
extern

Definition at line 11 of file subnet_cmds_messages.h.

Referenced by unload().

◆ SUBNET_CMDS_INIT_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_INIT_FAILED = "SUBNET_CMDS_INIT_FAILED"
extern

Definition at line 12 of file subnet_cmds_messages.h.

Referenced by load().

◆ SUBNET_CMDS_INIT_OK

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_INIT_OK = "SUBNET_CMDS_INIT_OK"
extern

Definition at line 13 of file subnet_cmds_messages.h.

Referenced by load().

◆ subnet_cmds_logger

◆ SUBNET_CMDS_NETWORK4_ADD_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK4_ADD_FAILED = "SUBNET_CMDS_NETWORK4_ADD_FAILED"
extern

Definition at line 14 of file subnet_cmds_messages.h.

Referenced by network4_add().

◆ SUBNET_CMDS_NETWORK4_DEL_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK4_DEL_FAILED = "SUBNET_CMDS_NETWORK4_DEL_FAILED"
extern

Definition at line 15 of file subnet_cmds_messages.h.

Referenced by network4_del().

◆ SUBNET_CMDS_NETWORK4_GET_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK4_GET_FAILED = "SUBNET_CMDS_NETWORK4_GET_FAILED"
extern

Definition at line 16 of file subnet_cmds_messages.h.

Referenced by network4_get().

◆ SUBNET_CMDS_NETWORK4_LIST_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK4_LIST_FAILED = "SUBNET_CMDS_NETWORK4_LIST_FAILED"
extern

Definition at line 17 of file subnet_cmds_messages.h.

Referenced by network4_list().

◆ SUBNET_CMDS_NETWORK4_SUBNET_ADD_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK4_SUBNET_ADD_FAILED = "SUBNET_CMDS_NETWORK4_SUBNET_ADD_FAILED"
extern

Definition at line 18 of file subnet_cmds_messages.h.

Referenced by network4_subnet_add().

◆ SUBNET_CMDS_NETWORK4_SUBNET_DEL_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK4_SUBNET_DEL_FAILED = "SUBNET_CMDS_NETWORK4_SUBNET_DEL_FAILED"
extern

Definition at line 19 of file subnet_cmds_messages.h.

Referenced by network4_subnet_del().

◆ SUBNET_CMDS_NETWORK6_ADD_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK6_ADD_FAILED = "SUBNET_CMDS_NETWORK6_ADD_FAILED"
extern

Definition at line 20 of file subnet_cmds_messages.h.

Referenced by network6_add().

◆ SUBNET_CMDS_NETWORK6_DEL_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK6_DEL_FAILED = "SUBNET_CMDS_NETWORK6_DEL_FAILED"
extern

Definition at line 21 of file subnet_cmds_messages.h.

Referenced by network6_del().

◆ SUBNET_CMDS_NETWORK6_GET_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK6_GET_FAILED = "SUBNET_CMDS_NETWORK6_GET_FAILED"
extern

Definition at line 22 of file subnet_cmds_messages.h.

Referenced by network6_get().

◆ SUBNET_CMDS_NETWORK6_LIST_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK6_LIST_FAILED = "SUBNET_CMDS_NETWORK6_LIST_FAILED"
extern

Definition at line 23 of file subnet_cmds_messages.h.

Referenced by network6_list().

◆ SUBNET_CMDS_NETWORK6_SUBNET_ADD_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK6_SUBNET_ADD_FAILED = "SUBNET_CMDS_NETWORK6_SUBNET_ADD_FAILED"
extern

Definition at line 24 of file subnet_cmds_messages.h.

Referenced by network6_subnet_add().

◆ SUBNET_CMDS_NETWORK6_SUBNET_DEL_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK6_SUBNET_DEL_FAILED = "SUBNET_CMDS_NETWORK6_SUBNET_DEL_FAILED"
extern

Definition at line 25 of file subnet_cmds_messages.h.

Referenced by network6_subnet_del().

◆ SUBNET_CMDS_NETWORK_ADD

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK_ADD = "SUBNET_CMDS_NETWORK_ADD"
extern

Definition at line 26 of file subnet_cmds_messages.h.

Referenced by isc::subnet_cmds::SubnetCmdsImpl::addNetwork().

◆ SUBNET_CMDS_NETWORK_DEL

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK_DEL = "SUBNET_CMDS_NETWORK_DEL"
extern

Definition at line 27 of file subnet_cmds_messages.h.

Referenced by isc::subnet_cmds::SubnetCmdsImpl::delNetwork().

◆ SUBNET_CMDS_NETWORK_GET

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK_GET = "SUBNET_CMDS_NETWORK_GET"
extern

Definition at line 28 of file subnet_cmds_messages.h.

Referenced by isc::subnet_cmds::SubnetCmdsImpl::getNetwork().

◆ SUBNET_CMDS_NETWORK_GET_EMPTY

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK_GET_EMPTY = "SUBNET_CMDS_NETWORK_GET_EMPTY"
extern

Definition at line 29 of file subnet_cmds_messages.h.

Referenced by isc::subnet_cmds::SubnetCmdsImpl::getNetwork().

◆ SUBNET_CMDS_NETWORK_LIST

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK_LIST = "SUBNET_CMDS_NETWORK_LIST"
extern

◆ SUBNET_CMDS_NETWORK_LIST_EMPTY

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK_LIST_EMPTY = "SUBNET_CMDS_NETWORK_LIST_EMPTY"
extern

◆ SUBNET_CMDS_NETWORK_SUBNET_ADD

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK_SUBNET_ADD = "SUBNET_CMDS_NETWORK_SUBNET_ADD"
extern

◆ SUBNET_CMDS_NETWORK_SUBNET_DEL

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_NETWORK_SUBNET_DEL = "SUBNET_CMDS_NETWORK_SUBNET_DEL"
extern

◆ SUBNET_CMDS_SUBNET4_ADD_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET4_ADD_FAILED = "SUBNET_CMDS_SUBNET4_ADD_FAILED"
extern

Definition at line 34 of file subnet_cmds_messages.h.

Referenced by subnet4_add().

◆ SUBNET_CMDS_SUBNET4_DEL_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET4_DEL_FAILED = "SUBNET_CMDS_SUBNET4_DEL_FAILED"
extern

Definition at line 37 of file subnet_cmds_messages.h.

Referenced by subnet4_del().

◆ SUBNET_CMDS_SUBNET4_DELTA_ADD_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET4_DELTA_ADD_FAILED = "SUBNET_CMDS_SUBNET4_DELTA_ADD_FAILED"
extern

Definition at line 35 of file subnet_cmds_messages.h.

Referenced by subnet4_delta_add().

◆ SUBNET_CMDS_SUBNET4_DELTA_DEL_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET4_DELTA_DEL_FAILED = "SUBNET_CMDS_SUBNET4_DELTA_DEL_FAILED"
extern

Definition at line 36 of file subnet_cmds_messages.h.

Referenced by subnet4_delta_del().

◆ SUBNET_CMDS_SUBNET4_GET_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET4_GET_FAILED = "SUBNET_CMDS_SUBNET4_GET_FAILED"
extern

Definition at line 38 of file subnet_cmds_messages.h.

Referenced by subnet4_get().

◆ SUBNET_CMDS_SUBNET4_LIST_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET4_LIST_FAILED = "SUBNET_CMDS_SUBNET4_LIST_FAILED"
extern

Definition at line 39 of file subnet_cmds_messages.h.

Referenced by subnet4_list().

◆ SUBNET_CMDS_SUBNET4_UPDATE_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET4_UPDATE_FAILED = "SUBNET_CMDS_SUBNET4_UPDATE_FAILED"
extern

Definition at line 40 of file subnet_cmds_messages.h.

Referenced by subnet4_update().

◆ SUBNET_CMDS_SUBNET6_ADD_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET6_ADD_FAILED = "SUBNET_CMDS_SUBNET6_ADD_FAILED"
extern

Definition at line 41 of file subnet_cmds_messages.h.

Referenced by subnet6_add().

◆ SUBNET_CMDS_SUBNET6_DEL_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET6_DEL_FAILED = "SUBNET_CMDS_SUBNET6_DEL_FAILED"
extern

Definition at line 44 of file subnet_cmds_messages.h.

Referenced by subnet6_del().

◆ SUBNET_CMDS_SUBNET6_DELTA_ADD_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET6_DELTA_ADD_FAILED = "SUBNET_CMDS_SUBNET6_DELTA_ADD_FAILED"
extern

Definition at line 42 of file subnet_cmds_messages.h.

Referenced by subnet6_delta_add().

◆ SUBNET_CMDS_SUBNET6_DELTA_DEL_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET6_DELTA_DEL_FAILED = "SUBNET_CMDS_SUBNET6_DELTA_DEL_FAILED"
extern

Definition at line 43 of file subnet_cmds_messages.h.

Referenced by subnet6_delta_del().

◆ SUBNET_CMDS_SUBNET6_GET_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET6_GET_FAILED = "SUBNET_CMDS_SUBNET6_GET_FAILED"
extern

Definition at line 45 of file subnet_cmds_messages.h.

Referenced by subnet6_get().

◆ SUBNET_CMDS_SUBNET6_LIST_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET6_LIST_FAILED = "SUBNET_CMDS_SUBNET6_LIST_FAILED"
extern

Definition at line 46 of file subnet_cmds_messages.h.

Referenced by subnet6_list().

◆ SUBNET_CMDS_SUBNET6_UPDATE_FAILED

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET6_UPDATE_FAILED = "SUBNET_CMDS_SUBNET6_UPDATE_FAILED"
extern

Definition at line 47 of file subnet_cmds_messages.h.

Referenced by subnet6_update().

◆ SUBNET_CMDS_SUBNET_ADD

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET_ADD = "SUBNET_CMDS_SUBNET_ADD"
extern

Definition at line 48 of file subnet_cmds_messages.h.

Referenced by isc::subnet_cmds::SubnetCmdsImpl::addSubnet().

◆ SUBNET_CMDS_SUBNET_DEL

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET_DEL = "SUBNET_CMDS_SUBNET_DEL"
extern

Definition at line 49 of file subnet_cmds_messages.h.

Referenced by isc::subnet_cmds::SubnetCmdsImpl::delSubnet().

◆ SUBNET_CMDS_SUBNET_GET

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET_GET = "SUBNET_CMDS_SUBNET_GET"
extern

Definition at line 50 of file subnet_cmds_messages.h.

Referenced by isc::subnet_cmds::SubnetCmdsImpl::getSubnet().

◆ SUBNET_CMDS_SUBNET_GET_EMPTY

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET_GET_EMPTY = "SUBNET_CMDS_SUBNET_GET_EMPTY"
extern

Definition at line 51 of file subnet_cmds_messages.h.

Referenced by isc::subnet_cmds::SubnetCmdsImpl::getSubnet().

◆ SUBNET_CMDS_SUBNET_LIST

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET_LIST = "SUBNET_CMDS_SUBNET_LIST"
extern

◆ SUBNET_CMDS_SUBNET_LIST_EMPTY

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET_LIST_EMPTY = "SUBNET_CMDS_SUBNET_LIST_EMPTY"
extern

◆ SUBNET_CMDS_SUBNET_UPDATE

const isc::log::MessageID isc::subnet_cmds::SUBNET_CMDS_SUBNET_UPDATE = "SUBNET_CMDS_SUBNET_UPDATE"
extern