Kea  1.9.9-git
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 
14 namespace isc {
15 namespace dhcp {
16 
20 public:
21 
28  static void moveReservationMode(isc::data::ElementPtr config);
29 
30 protected:
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
void parseDdnsParams(const data::ConstElementPtr &network_data, NetworkPtr &network)
Parses parameters pertaining to DDNS behavior.
boost::shared_ptr< Network > NetworkPtr
Pointer to the Network object.
Definition: network.h:40
Common configuration parser for shared networks and subnets.
void parseCommon(const data::ConstElementPtr &network_data, NetworkPtr &network)
Parses common parameters.
void parseCacheParams(const data::ConstElementPtr &network_data, NetworkPtr &network)
Parses parameters related to lease cache settings.
boost::shared_ptr< Element > ElementPtr
Definition: data.h:20
void parseTeePercents(const data::ConstElementPtr &network_data, NetworkPtr &network)
Parses parameters related to "percent" timers settings.
static void moveReservationMode(isc::data::ElementPtr config)
Moves deprecated reservation-mode parameter to new reservations flags.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
Defines the logger used by the top-level component of kea-dhcp-ddns.