Kea  1.9.9-git
adaptor_pool.h
Go to the documentation of this file.
1 // Copyright (C) 2018-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 ISC_ADAPTOR_POOL_H
8 #define ISC_ADAPTOR_POOL_H 1
9 
10 #include <yang/adaptor.h>
11 #include <list>
12 
13 namespace isc {
14 namespace yang {
15 
28 class AdaptorPool {
29 public:
30 
32  AdaptorPool();
33 
35  virtual ~AdaptorPool();
36 
41  static void canonizePool(isc::data::ElementPtr pool);
42 
53  static void fromSubnet(const std::string& model,
56 
71  static void toSubnet(const std::string& model,
72  isc::data::ElementPtr subnet,
74 
75 protected:
84 
91  static void toSubnetIetf6(isc::data::ElementPtr subnet,
93 };
94 
95 }; // end of namespace isc::yang
96 }; // end of namespace isc
97 
98 #endif // ISC_ADAPTOR_POOL_H
virtual ~AdaptorPool()
Destructor.
Definition: adaptor_pool.cc:21
static void canonizePool(isc::data::ElementPtr pool)
Canonize pool.
Definition: adaptor_pool.cc:25
JSON adaptor for pools between canonical Kea and YANG models.
Definition: adaptor_pool.h:28
boost::shared_ptr< Element > ElementPtr
Definition: data.h:20
static void toSubnetIetf6(isc::data::ElementPtr subnet, isc::data::ConstElementPtr pools)
To subnet for ietf-dhcpv6-server.
Definition: adaptor_pool.cc:79
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
AdaptorPool()
Constructor.
Definition: adaptor_pool.cc:18
Defines the logger used by the top-level component of kea-dhcp-ddns.
static void toSubnet(const std::string &model, isc::data::ElementPtr subnet, isc::data::ConstElementPtr pools)
Move parameters from pools to the subnet.
Definition: adaptor_pool.cc:67
static void fromSubnetIetf6(isc::data::ConstElementPtr subnet, isc::data::ConstElementPtr pools)
From subnets for ietf-dhcpv6-server.
Definition: adaptor_pool.cc:59
static void fromSubnet(const std::string &model, isc::data::ConstElementPtr subnet, isc::data::ConstElementPtr pools)
Moves parameters from subnets to pools.
Definition: adaptor_pool.cc:47