![]() |
Kea 3.0.0
|
Parameters for various consistency checks. More...
#include <cfg_consistency.h>
Public Types | |
| enum | ExtendedInfoSanity { EXTENDED_INFO_CHECK_NONE , EXTENDED_INFO_CHECK_FIX , EXTENDED_INFO_CHECK_STRICT , EXTENDED_INFO_CHECK_PEDANTIC } |
| Values for extended info sanity checks done for leases. More... | |
| 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. | |
| ExtendedInfoSanity | getExtendedInfoSanityCheck () const |
| Returns specific sanity checks mode for extended info. | |
| LeaseSanity | getLeaseSanityCheck () const |
| Returns specific sanity checks mode for leases. | |
| void | setExtendedInfoSanityCheck (ExtendedInfoSanity l) |
| Sets specific sanity checks mode for extended info. | |
| void | setLeaseSanityCheck (LeaseSanity l) |
| Sets specific sanity checks mode for leases. | |
| virtual isc::data::ElementPtr | toElement () const |
| Returns JSON representation. | |
| Public Member Functions inherited from isc::data::UserContext | |
| void | contextToElement (data::ElementPtr map) const |
| Merge unparse a user_context object. | |
| data::ConstElementPtr | getContext () const |
| Returns const pointer to the user context. | |
| void | setContext (const data::ConstElementPtr &ctx) |
| Sets user context. | |
| Public Member Functions inherited from isc::data::CfgToElement | |
| virtual | ~CfgToElement () |
| Destructor. | |
Static Public Member Functions | |
| static std::string | sanityCheckToText (ExtendedInfoSanity check_type) |
| Converts extended info sanity check value to printable text. | |
| static std::string | sanityCheckToText (LeaseSanity check_type) |
| Converts lease sanity check value to printable text. | |
| Static Public Member Functions inherited from isc::data::UserContext | |
| static data::ElementPtr | toElement (data::ConstElementPtr map) |
| Copy an Element map. | |
Additional Inherited Members | |
| Protected Attributes inherited from isc::data::UserContext | |
| data::ConstElementPtr | user_context_ |
| Pointer to the user context (may be NULL) | |
Parameters for various consistency checks.
Definition at line 19 of file cfg_consistency.h.
Values for extended info sanity checks done for leases.
| Enumerator | |
|---|---|
| EXTENDED_INFO_CHECK_NONE | |
| EXTENDED_INFO_CHECK_FIX | |
| EXTENDED_INFO_CHECK_STRICT | |
| EXTENDED_INFO_CHECK_PEDANTIC | |
Definition at line 36 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 45 of file cfg_consistency.h.
References EXTENDED_INFO_CHECK_FIX, and LEASE_CHECK_NONE.
|
inline |
Returns specific sanity checks mode for extended info.
Definition at line 84 of file cfg_consistency.h.
Referenced by toElement().
|
inline |
Returns specific sanity checks mode for leases.
Definition at line 65 of file cfg_consistency.h.
Referenced by toElement().
|
static |
Converts extended info sanity check value to printable text.
| check_type | sanity mode to be converted |
Definition at line 44 of file cfg_consistency.cc.
References EXTENDED_INFO_CHECK_FIX, EXTENDED_INFO_CHECK_NONE, EXTENDED_INFO_CHECK_PEDANTIC, and EXTENDED_INFO_CHECK_STRICT.
|
static |
Converts lease sanity check value to printable text.
| check_type | sanity mode to be converted |
Definition at line 27 of file cfg_consistency.cc.
References LEASE_CHECK_DEL, LEASE_CHECK_FIX, LEASE_CHECK_FIX_DEL, LEASE_CHECK_NONE, and LEASE_CHECK_WARN.
Referenced by isc::dhcp::Memfile_LeaseMgr::buildExtendedInfoTables6(), isc::dhcp::Memfile_LeaseMgr::extractExtendedInfo4(), and toElement().
|
inline |
Sets specific sanity checks mode for extended info.
| l | sanity checks mode |
Definition at line 77 of file cfg_consistency.h.
|
inline |
Sets specific sanity checks mode for leases.
| l | sanity checks mode |
Definition at line 58 of file cfg_consistency.h.
|
virtual |
Returns JSON representation.
Implements isc::data::CfgToElement.
Definition at line 17 of file cfg_consistency.cc.
References getExtendedInfoSanityCheck(), getLeaseSanityCheck(), and sanityCheckToText().