32 std::string lc = lease_checks->stringValue();
35 check = CfgConsistency::LEASE_CHECK_NONE;
36 }
else if (lc ==
"warn") {
37 check = CfgConsistency::LEASE_CHECK_WARN;
38 }
else if (lc ==
"fix") {
39 check = CfgConsistency::LEASE_CHECK_FIX;
40 }
else if (lc ==
"fix-del") {
41 check = CfgConsistency::LEASE_CHECK_FIX_DEL;
42 }
else if (lc ==
"del") {
43 check = CfgConsistency::LEASE_CHECK_DEL;
46 <<
", supported values are: none, warn, fix, fix-del, del");
CfgConsistencyPtr getConsistency()
Returns const pointer to object holding sanity checks flags.
LeaseSanity
Values for subnet-id sanity checks done for leases.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
To be removed. Please use ConfigError instead.
boost::shared_ptr< const Element > ConstElementPtr
Specifies current DHCP configuration.
Defines the logger used by the top-level component of kea-dhcp-ddns.