Kea 1.9.11
base_network_parser.h
Go to the documentation of this file.
1// Copyright (C) 2019-2021 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#ifndef BASE_NETWORK_PARSER_H
8#define BASE_NETWORK_PARSER_H
9
10#include <cc/data.h>
11#include <cc/simple_parser.h>
12#include <dhcpsrv/network.h>
13
14namespace isc {
15namespace dhcp {
16
20public:
21
29
30protected:
31
47 void parseCommon(const data::ConstElementPtr& network_data,
48 NetworkPtr& network);
49
64 void parseTeePercents(const data::ConstElementPtr& network_data,
65 NetworkPtr& network);
66
80 void parseCacheParams(const data::ConstElementPtr& network_data,
81 NetworkPtr& network);
82
97 void parseDdnsParams(const data::ConstElementPtr& network_data,
98 NetworkPtr& network);
99};
100
101} // end of namespace isc::dhcp
102} // end of namespace isc
103
104#endif
Common configuration parser for shared networks and subnets.
void parseCacheParams(const data::ConstElementPtr &network_data, NetworkPtr &network)
Parses parameters related to lease cache settings.
void parseDdnsParams(const data::ConstElementPtr &network_data, NetworkPtr &network)
Parses parameters pertaining to DDNS behavior.
void parseCommon(const data::ConstElementPtr &network_data, NetworkPtr &network)
Parses common parameters.
static void moveReservationMode(isc::data::ElementPtr config)
Moves deprecated reservation-mode parameter to new reservations flags.
void parseTeePercents(const data::ConstElementPtr &network_data, NetworkPtr &network)
Parses parameters related to "percent" timers settings.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
boost::shared_ptr< Element > ElementPtr
Definition: data.h:24
boost::shared_ptr< Network > NetworkPtr
Pointer to the Network object.
Definition: network.h:40
Defines the logger used by the top-level component of kea-lfc.