Kea 1.9.11
shared_network_parser.h
Go to the documentation of this file.
1// Copyright (C) 2017-2020 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 SHARED_SUBNET_PARSER_H
8#define SHARED_SUBNET_PARSER_H
9
10#include <cc/data.h>
11#include <cc/simple_parser.h>
16
17namespace isc {
18namespace dhcp {
19
22public:
27 SharedNetwork4Parser(bool check_iface = true);
28
37 parse(const data::ConstElementPtr& shared_network_data);
38
39protected:
42};
43
46public:
51 SharedNetwork6Parser(bool check_iface = true);
52
61 parse(const data::ConstElementPtr& shared_network_data);
62
63protected:
66};
67
68} // enf of namespace isc::dhcp
69} // end of namespace isc
70
71#endif // SHARED_SUBNET_PARSER_H
Common configuration parser for shared networks and subnets.
Implements parser for IPv4 shared networks.
SharedNetwork4Parser(bool check_iface=true)
Constructor.
SharedNetwork4Ptr parse(const data::ConstElementPtr &shared_network_data)
Parses shared configuration information for IPv4 shared network.
bool check_iface_
Check if the specified interface exists in the system.
Implements parser for IPv6 shared networks.
SharedNetwork6Parser(bool check_iface=true)
Constructor.
SharedNetwork6Ptr parse(const data::ConstElementPtr &shared_network_data)
Parses shared configuration information for IPv6 shared network.
bool check_iface_
Check if the specified interface exists in the system.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
boost::shared_ptr< SharedNetwork6 > SharedNetwork6Ptr
Pointer to SharedNetwork6 object.
boost::shared_ptr< SharedNetwork4 > SharedNetwork4Ptr
Pointer to SharedNetwork4 object.
Defines the logger used by the top-level component of kea-lfc.