33 std::string lc = checks->stringValue();
37 }
else if (lc ==
"warn") {
39 }
else if (lc ==
"fix") {
41 }
else if (lc ==
"fix-del") {
43 }
else if (lc ==
"del") {
47 <<
", supported values are: none, warn, fix, fix-del, del");
49 cfg.getConsistency()->setLeaseSanityCheck(check);
53 checks = sanity_checks->get(
"extended-info-checks");
58 std::string exc = checks->stringValue();
62 }
else if (exc ==
"fix") {
64 }
else if (exc ==
"strict") {
66 }
else if (exc ==
"pedantic") {
70 "Unsupported extended-info-checks value: " << exc
71 <<
", supported values are: none, fix, strict, pedantic");
73 cfg.getConsistency()->setExtendedInfoSanityCheck(check);
LeaseSanity
Values for subnet-id sanity checks done for leases.
ExtendedInfoSanity
Values for extended info sanity checks done for leases.
@ EXTENDED_INFO_CHECK_STRICT
@ EXTENDED_INFO_CHECK_PEDANTIC
@ EXTENDED_INFO_CHECK_FIX
@ EXTENDED_INFO_CHECK_NONE
To be removed. Please use ConfigError instead.
void parse(SrvConfig &srv_cfg, const isc::data::ConstElementPtr &value)
parses JSON structure
Specifies current DHCP configuration.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< const Element > ConstElementPtr
Defines the logger used by the top-level component of kea-lfc.