Kea 2.2.0
translator_config.h
Go to the documentation of this file.
1// Copyright (C) 2018-2022 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>
16#include <list>
17
18namespace isc {
19namespace yang {
20
25
190
356
398
406 virtual public TranslatorDatabases,
407 virtual public TranslatorClasses,
408 virtual public TranslatorSharedNetworks,
409 virtual public TranslatorLoggers {
410public:
411
416 TranslatorConfig(sysrepo::S_Session session, const std::string& model);
417
419 virtual ~TranslatorConfig();
420
427
435
436protected:
445
447 void delConfigIetf6();
448
457
463
469
474 isc::data::ElementPtr getServerKeaDhcpCommon(const std::string& xpath);
475
481
487
489 void delConfigKea();
490
495
500
505 void setServerKeaDhcpCommon(const std::string& xpath,
507
508 isc::data::ElementPtr getHook(const std::string& xpath);
509
514 isc::data::ElementPtr getHooksKea(const std::string& xpath);
515
520 isc::data::ElementPtr getExpiredKea(const std::string& xpath);
521
526 isc::data::ElementPtr getDdnsKea(const std::string& xpath);
527
532 isc::data::ElementPtr getConfigControlKea(const std::string& xpath);
533
538
543};
544
545} // end of namespace isc::yang
546} // end of namespace isc
547
548#endif // ISC_TRANSLATOR_CONFIG_H
A translator class for converting a client class list between YANG and JSON.
DHCP configuration translation between YANG and JSON.
isc::data::ElementPtr getConfigKea4()
getConfig for kea-dhcp4-server.
isc::data::ElementPtr getExpiredKea(const std::string &xpath)
Retrieves expired leases processing parameters from sysrepo.
void setServerKeaDhcpCommon(const std::string &xpath, isc::data::ConstElementPtr elem)
setServer common part for kea-dhcp[46]-server:config.
void delConfigKea()
delConfig for kea-dhcp[46]-server.
isc::data::ElementPtr getServerKeaDhcp4()
getServer for kea-dhcp4-server:config.
void setConfigKea6(isc::data::ConstElementPtr elem)
setConfig for kea-dhcp6-server.
isc::data::ElementPtr getHooksKea(const std::string &xpath)
Retrieves hooks configuration from sysrepo.
isc::data::ElementPtr getServerKeaDhcpCommon(const std::string &xpath)
getServer common part for kea-dhcp[46]-server:config.
void setConfigIetf6(isc::data::ConstElementPtr elem)
setConfig for ietf-dhcpv6-server.
isc::data::ElementPtr getDdnsKea(const std::string &xpath)
Retrieves DDNS configuration from sysrepo.
void setConfigKea4(isc::data::ConstElementPtr elem)
setConfig for kea-dhcp[46]-server.
isc::data::ElementPtr getConfigControlKea(const std::string &xpath)
Retrieves configuration control from sysrepo.
void setServerKeaDhcp6(isc::data::ConstElementPtr elem)
setServer for kea-dhcp6-server:config.
void setConfig(isc::data::ConstElementPtr elem)
Translate and sets the DHCP server configuration from JSON to YANG.
isc::data::ElementPtr getConfigKea6()
getConfig for kea-dhcp6-server.
isc::data::ElementPtr getConfigIetf6()
getConfig for ietf-dhcpv6-server.
void setServerKeaDhcp4(isc::data::ConstElementPtr elem)
setServer for kea-dhcp4-server:config.
TranslatorConfig(sysrepo::S_Session session, const std::string &model)
Constructor.
isc::data::ElementPtr getServerKeaDhcp6()
getServer for kea-dhcp6-server:config.
isc::data::ElementPtr getHook(const std::string &xpath)
void delConfigIetf6()
delConfig for ietf-dhcpv6-server.
virtual ~TranslatorConfig()
Destructor.
isc::data::ElementPtr getConfig()
Get and translate the whole DHCP server configuration from YANG to JSON.
Control socket translation between YANG and JSON.
A translator class for converting a database access list between YANG and JSON.
A translator class for converting a logger list between YANG and JSON.
A translator class for converting a shared network list between YANG and JSON.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
boost::shared_ptr< Element > ElementPtr
Definition: data.h:24
Defines the logger used by the top-level component of kea-lfc.