Kea
1.9.9-git
|
Parameters for various consistency checks. More...
#include <cfg_consistency.h>
Public Types | |
enum | LeaseSanity { LEASE_CHECK_NONE, LEASE_CHECK_WARN, LEASE_CHECK_FIX, LEASE_CHECK_FIX_DEL, LEASE_CHECK_DEL } |
Values for subnet-id sanity checks done for leases. More... | |
Public Member Functions | |
CfgConsistency () | |
Constructor. More... | |
LeaseSanity | getLeaseSanityCheck () const |
Returns specific sanity checks mode for leases. More... | |
void | setLeaseSanityCheck (LeaseSanity l) |
Sets specific sanity checks mode for leases. More... | |
virtual isc::data::ElementPtr | toElement () const |
Returns JSON representation. More... | |
Public Member Functions inherited from isc::data::UserContext | |
void | contextToElement (data::ElementPtr map) const |
Merge unparse a user_context object. More... | |
data::ConstElementPtr | getContext () const |
Returns const pointer to the user context. More... | |
void | setContext (const data::ConstElementPtr &ctx) |
Sets user context. More... | |
Public Member Functions inherited from isc::data::CfgToElement | |
virtual | ~CfgToElement () |
Destructor. More... | |
Static Public Member Functions | |
static std::string | sanityCheckToText (LeaseSanity check_type) |
Converts sanity check value to printable text. More... | |
Static Public Member Functions inherited from isc::data::UserContext | |
static data::ElementPtr | toElement (data::ConstElementPtr map) |
Copy an Element map. More... | |
Additional Inherited Members | |
Protected Attributes inherited from isc::data::UserContext | |
data::ConstElementPtr | user_context_ |
Pointer to the user context (may be NULL) More... | |
Parameters for various consistency checks.
Definition at line 19 of file cfg_consistency.h.
Values for subnet-id sanity checks done for leases.
Enumerator | |
---|---|
LEASE_CHECK_NONE | |
LEASE_CHECK_WARN | |
LEASE_CHECK_FIX | |
LEASE_CHECK_FIX_DEL | |
LEASE_CHECK_DEL |
Definition at line 24 of file cfg_consistency.h.
|
inline |
Constructor.
Definition at line 36 of file cfg_consistency.h.
|
inline |
Returns specific sanity checks mode for leases.
Definition at line 56 of file cfg_consistency.h.
|
static |
Converts sanity check value to printable text.
check_type | sanity mode to be converted |
Definition at line 25 of file cfg_consistency.cc.
|
inline |
Sets specific sanity checks mode for leases.
l | sanity checks mode |
Definition at line 49 of file cfg_consistency.h.
|
virtual |
Returns JSON representation.
Implements isc::data::CfgToElement.
Definition at line 17 of file cfg_consistency.cc.