Kea  1.9.9-git
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>
12 #include <dhcpsrv/cfg_subnets4.h>
13 #include <dhcpsrv/cfg_subnets6.h>
14 #include <dhcpsrv/shared_network.h>
16 
17 namespace isc {
18 namespace dhcp {
19 
22 public:
27  SharedNetwork4Parser(bool check_iface = true);
28 
37  parse(const data::ConstElementPtr& shared_network_data);
38 
39 protected:
42 };
43 
46 public:
51  SharedNetwork6Parser(bool check_iface = true);
52 
61  parse(const data::ConstElementPtr& shared_network_data);
62 
63 protected:
66 };
67 
68 } // enf of namespace isc::dhcp
69 } // end of namespace isc
70 
71 #endif // SHARED_SUBNET_PARSER_H
bool check_iface_
Check if the specified interface exists in the system.
Common configuration parser for shared networks and subnets.
bool check_iface_
Check if the specified interface exists in the system.
Implements parser for IPv4 shared networks.
SharedNetwork6Ptr parse(const data::ConstElementPtr &shared_network_data)
Parses shared configuration information for IPv6 shared network.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
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-dhcp-ddns.
SharedNetwork6Parser(bool check_iface=true)
Constructor.
Implements parser for IPv6 shared networks.
SharedNetwork4Ptr parse(const data::ConstElementPtr &shared_network_data)
Parses shared configuration information for IPv4 shared network.
SharedNetwork4Parser(bool check_iface=true)
Constructor.