Kea 1.5.0
cfg_consistency.cc
Go to the documentation of this file.
1// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
8#include <cc/data.h>
9
10using namespace isc::data;
11
12namespace isc {
13namespace dhcp {
14
16 ElementPtr m(new MapElement());
18 m->set("lease-checks", l);
19
20 return (m);
21}
22
24 switch (check_type) {
26 return ("none");
28 return ("warn");
29 case LEASE_CHECK_FIX:
30 return ("fix");
32 return ("fix-del");
33 case LEASE_CHECK_DEL:
34 return ("del");
35 default:
36 return ("unknown");
37 }
38}
39
40};
41};
42
43
virtual isc::data::ElementPtr toElement() const
Returns JSON representation.
LeaseSanity
Values for subnet-id sanity checks done for leases.
LeaseSanity getLeaseSanityCheck() const
Returns specific sanity checks mode for leases.
static std::string sanityCheckToText(LeaseSanity check_type)
Converts sanity check value to printable text.
boost::shared_ptr< Element > ElementPtr
Definition: data.h:22
Defines the logger used by the top-level component of kea-dhcp-ddns.