Kea 2.7.6
cfg_consistency.cc
Go to the documentation of this file.
1// Copyright (C) 2018-2022 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
7#include <config.h>
8
10#include <cc/data.h>
11
12using namespace isc::data;
13
14namespace isc {
15namespace dhcp {
16
18 ElementPtr m(new MapElement());
20 m->set("lease-checks", l);
22 m->set("extended-info-checks", x);
23
24 return (m);
25}
26
28 switch (check_type) {
30 return ("none");
32 return ("warn");
33 case LEASE_CHECK_FIX:
34 return ("fix");
36 return ("fix-del");
37 case LEASE_CHECK_DEL:
38 return ("del");
39 default:
40 return ("unknown");
41 }
42}
43
45 switch (check_type) {
47 return ("none");
49 return ("fix");
51 return ("strict");
53 return ("pedantic");
54 default:
55 return ("unknown");
56 }
57}
58
59}
60}
virtual isc::data::ElementPtr toElement() const
Returns JSON representation.
LeaseSanity
Values for subnet-id sanity checks done for leases.
ExtendedInfoSanity getExtendedInfoSanityCheck() const
Returns specific sanity checks mode for extended info.
ExtendedInfoSanity
Values for extended info sanity checks done for leases.
LeaseSanity getLeaseSanityCheck() const
Returns specific sanity checks mode for leases.
static std::string sanityCheckToText(LeaseSanity check_type)
Converts lease sanity check value to printable text.
boost::shared_ptr< Element > ElementPtr
Definition data.h:28
Defines the logger used by the top-level component of kea-lfc.