Kea  1.5.0
translator_config.h
Go to the documentation of this file.
1 // Copyright (C) 2018 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_TRANSLATOR_CONFIG_H
8 #define ISC_TRANSLATOR_CONFIG_H 1
9 
10 #include <yang/translator.h>
13 #include <yang/translator_class.h>
15 #include <yang/translator_logger.h>
16 #include <list>
17 
18 namespace isc {
19 namespace yang {
20 
25 
163 
295 
344 
386 
394  virtual public TranslatorDatabases,
395  virtual public TranslatorClasses,
396  virtual public TranslatorSharedNetworks,
397  virtual public TranslatorLoggers {
398 public:
399 
404 #ifndef HAVE_PRE_0_7_6_SYSREPO
405  TranslatorConfig(sysrepo::S_Session session, const std::string& model);
406 #else
407  TranslatorConfig(S_Session session, const std::string& model);
408 #endif
409 
411  virtual ~TranslatorConfig();
412 
419 
427 
428 protected:
437 
439  void delConfigIetf6();
440 
449 
455 
461 
466  isc::data::ElementPtr getServerKeaDhcpCommon(const std::string& xpath);
467 
473 
479 
481  void delConfigKea();
482 
487 
492 
497  void setServerKeaDhcpCommon(const std::string& xpath,
499 
504  isc::data::ElementPtr getHooksKea(const std::string& xpath);
505 
510  isc::data::ElementPtr getExpiredKea(const std::string& xpath);
511 
516  isc::data::ElementPtr getDdnsKea(const std::string& xpath);
517 
522  isc::data::ElementPtr getConfigControlKea(const std::string& xpath);
523 
528 
533 
538 
547  void getParam(isc::data::ElementPtr& storage, const std::string& xpath,
548  const std::string& name);
549 };
550 
551 }; // end of namespace isc::yang
552 }; // end of namespace isc
553 
554 #endif // ISC_TRANSLATOR_CONFIG_H
void setConfigKea4(isc::data::ConstElementPtr elem)
setConfig for kea-dhcp[46]-server.
isc::data::ElementPtr getConfigKea6()
getConfig for kea-dhcp6-server.
DHCP configuration translation between YANG and JSON.
void setConfigIetf6(isc::data::ConstElementPtr elem)
setConfig for ietf-dhcpv6-server.
TranslatorConfig(sysrepo::S_Session session, const std::string &model)
Constructor.
void setServerKeaDhcp4(isc::data::ConstElementPtr elem)
setServer for kea-dhcp4-server:config.
isc::data::ElementPtr getConfigKea4()
getConfig for kea-dhcp4-server.
boost::shared_ptr< Element > ElementPtr
Definition: data.h:20
void setConfig(isc::data::ConstElementPtr elem)
Translate and sets the DHCP server configuration from JSON to YANG.
void getParam(isc::data::ElementPtr &storage, const std::string &xpath, const std::string &name)
Retrieves an item and stores in the specified storage.
void setConfigKea6(isc::data::ConstElementPtr elem)
setConfig for kea-dhcp6-server.
isc::data::ElementPtr getConfig()
Get and translate the whole DHCP server configuration from YANG to JSON.
Control socket translation between YANG and JSON.
isc::data::ElementPtr getConfigIetf6()
getConfig for ietf-dhcpv6-server.
A translator class for converting a logger list between YANG and JSON.
isc::data::ElementPtr getExpiredKea(const std::string &xpath)
Retrieves expired leases processing parameters from sysrepo.
virtual ~TranslatorConfig()
Destructor.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
A translator class for converting a shared network list between YANG and JSON.
isc::data::ElementPtr getDdnsKea(const std::string &xpath)
Retrieves DDNS configuration from sysrepo.
void setServerKeaDhcp6(isc::data::ConstElementPtr elem)
setServer for kea-dhcp6-server:config.
void setServerKeaLogging(isc::data::ConstElementPtr elem)
set Logging part for kea-*:config.
void delConfigIetf6()
delConfig for ietf-dhcpv6-server.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void setServerKeaDhcpCommon(const std::string &xpath, isc::data::ConstElementPtr elem)
setServer common part for kea-dhcp[46]-server:config.
isc::data::ElementPtr getServerKeaDhcp4()
getServer for kea-dhcp4-server:config.
A translator class for converting a database access list between YANG and JSON.
A translator class for converting a client class list between YANG and JSON.
void delConfigKea()
delConfig for kea-dhcp[46]-server.
isc::data::ElementPtr getConfigControlKea(const std::string &xpath)
Retrieves configuration control from sysrepo.
isc::data::ElementPtr getServerKeaDhcpCommon(const std::string &xpath)
getServer common part for kea-dhcp[46]-server:config.
isc::data::ElementPtr getHooksKea(const std::string &xpath)
Retrieves hooks configuration from sysrepo.
isc::data::ElementPtr getServerKeaDhcp6()
getServer for kea-dhcp6-server:config.