Kea: ifaces_config_parser.h Source File

| Kea 3.2.0-git

ifaces_config_parser.h
Go to the documentation of this file.
1// Copyright (C) 2015-2026 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 IFACES_CONFIG_PARSER_H
8#define IFACES_CONFIG_PARSER_H
9
10#include <cc/data.h>
11#include <cc/simple_parser.h>
12#include <dhcpsrv/cfg_iface.h>
13#include <dhcpsrv/parsers/dhcp_parsers.h>
14
15namespace isc {
16namespace dhcp {
17
26 class IfacesConfigParser : public isc::data::SimpleParser {
27public:
28
36 IfacesConfigParser(const uint16_t protocol, bool test_mode);
37
45 void parse(const CfgIfacePtr& config, const isc::data::ConstElementPtr& values);
46
56 void parseInterfacesList(const CfgIfacePtr& cfg_iface,
57 isc::data::ConstElementPtr ifaces_list);
58
59private:
60
62 int protocol_;
63
65 bool test_mode_;
66};
67
68}
69} // end of namespace isc
70
71#endif // IFACES_CONFIG_PARSER_H
cfg_iface.h
isc::data::SimpleParser
A simple parser.
Definition lib/cc/simple_parser.h:68
isc::dhcp::IfacesConfigParser::parse
void parse(const CfgIfacePtr &config, const isc::data::ConstElementPtr &values)
Parses content of the "interfaces-config".
Definition ifaces_config_parser.cc:40
isc::dhcp::IfacesConfigParser::IfacesConfigParser
IfacesConfigParser(const uint16_t protocol, bool test_mode)
Constructor.
Definition ifaces_config_parser.cc:35
isc::dhcp::IfacesConfigParser::parseInterfacesList
void parseInterfacesList(const CfgIfacePtr &cfg_iface, isc::data::ConstElementPtr ifaces_list)
parses interfaces-list structure
Definition ifaces_config_parser.cc:21
data.h
dhcp_parsers.h
simple_parser.h
isc::config
Definition command_interpreter.cc:23
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:30
isc::dhcp
Definition dhcp4/client_handler.cc:20
isc::dhcp::CfgIfacePtr
boost::shared_ptr< CfgIface > CfgIfacePtr
A pointer to the CfgIface .
Definition cfg_iface.h:522
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18