mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 23:45:27 +00:00
[#65,!28] Minor comment changes after review.
This commit is contained in:
@@ -96,10 +96,12 @@ namespace yang {
|
|||||||
/// hosts-database[database-type='mysql']/port = 3306
|
/// hosts-database[database-type='mysql']/port = 3306
|
||||||
/// @endcode
|
/// @endcode
|
||||||
|
|
||||||
/// @brief A translator class for converting a database access between
|
/// @brief A translator class for converting a database access parameters
|
||||||
/// YANG and JSON.
|
/// between YANG and JSON.
|
||||||
///
|
///
|
||||||
/// Supports kea-dhcp[46]-server, not yet ietf-dhcpv6-server.
|
/// Supports the following models:
|
||||||
|
/// - kea-dhcp4-server
|
||||||
|
/// - kea-dhcp6-server
|
||||||
class TranslatorDatabase : virtual public TranslatorBasic {
|
class TranslatorDatabase : virtual public TranslatorBasic {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@@ -131,14 +133,14 @@ public:
|
|||||||
bool skip = false);
|
bool skip = false);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// @brief getDatabase JSON for kea-dhcp[46].
|
/// @brief getDatabase JSON for kea-dhcp[46]-server models.
|
||||||
///
|
///
|
||||||
/// @param xpath The xpath of the database.
|
/// @param xpath The xpath of the database.
|
||||||
/// @return JSON representation of the database or null if none.
|
/// @return JSON representation of the database or null if none.
|
||||||
/// @throw SysrepoError when sysrepo raises an error.
|
/// @throw SysrepoError when sysrepo raises an error.
|
||||||
isc::data::ElementPtr getDatabaseKea(const std::string& xpath);
|
isc::data::ElementPtr getDatabaseKea(const std::string& xpath);
|
||||||
|
|
||||||
/// @brief setDatabase for kea-dhcp[46].
|
/// @brief setDatabase for kea-dhcp[46]-server models.
|
||||||
///
|
///
|
||||||
/// @param xpath The xpath of the database access.
|
/// @param xpath The xpath of the database access.
|
||||||
/// @param elem The JSON element.
|
/// @param elem The JSON element.
|
||||||
@@ -185,14 +187,14 @@ public:
|
|||||||
isc::data::ConstElementPtr elem);
|
isc::data::ConstElementPtr elem);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// @brief getDatabases JSON for kea-dhcp[46].
|
/// @brief getDatabases JSON for kea-dhcp[46]-server models.
|
||||||
///
|
///
|
||||||
/// @param xpath The xpath of databases.
|
/// @param xpath The xpath of databases.
|
||||||
/// @return JSON representation of databases.
|
/// @return JSON representation of databases.
|
||||||
/// @throw SysrepoError when sysrepo raises an error.
|
/// @throw SysrepoError when sysrepo raises an error.
|
||||||
isc::data::ElementPtr getDatabasesKea(const std::string& xpath);
|
isc::data::ElementPtr getDatabasesKea(const std::string& xpath);
|
||||||
|
|
||||||
/// @brief setDatabases for kea-dhcp[46].
|
/// @brief setDatabases for kea-dhcp[46]-server models.
|
||||||
///
|
///
|
||||||
/// @param xpath The xpath of databases.
|
/// @param xpath The xpath of databases.
|
||||||
/// @param elem The JSON element.
|
/// @param elem The JSON element.
|
||||||
|
Reference in New Issue
Block a user