2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#1982] implement MySqlConfigBackendDHCPv[4|6]::getParameters

This commit is contained in:
Razvan Becheriu
2021-07-29 10:20:58 +03:00
committed by Tomek Mrugalski
parent 9cfb3f3b29
commit a69221f127
4 changed files with 28 additions and 10 deletions

View File

@@ -180,7 +180,7 @@ public:
parameters);
/// @brief Destructor.
~MySqlConfigBackendDHCPv4Impl();
~MySqlConfigBackendDHCPv4Impl() = default;
/// @brief Sends query to retrieve global parameter.
///
@@ -3645,7 +3645,7 @@ TaggedStatementArray tagged_statements = { {
}
};
}; // end anonymous namespace
} // end anonymous namespace
MySqlConfigBackendDHCPv4Impl::MySqlConfigBackendDHCPv4Impl(const DatabaseConnection::ParameterMap& parameters)
: MySqlConfigBackendImpl(parameters, &MySqlConfigBackendDHCPv4Impl::dbReconnect) {
@@ -3665,9 +3665,6 @@ MySqlConfigBackendDHCPv4Impl::MySqlConfigBackendDHCPv4Impl(const DatabaseConnect
conn_.makeReconnectCtl(timer_name_);
}
MySqlConfigBackendDHCPv4Impl::~MySqlConfigBackendDHCPv4Impl() {
}
MySqlConfigBackendDHCPv4::MySqlConfigBackendDHCPv4(const DatabaseConnection::ParameterMap& parameters)
: impl_(new MySqlConfigBackendDHCPv4Impl(parameters)), base_impl_(impl_) {
}
@@ -3677,6 +3674,11 @@ MySqlConfigBackendDHCPv4::isUnusable() {
return (impl_->conn_.isUnusable());
}
DatabaseConnection::ParameterMap
MySqlConfigBackendDHCPv4::getParameters() const {
return impl_->getParameters();
}
Subnet4Ptr
MySqlConfigBackendDHCPv4::getSubnet4(const ServerSelector& server_selector,
const std::string& subnet_prefix) const {

View File

@@ -604,6 +604,13 @@ public:
/// otherwise
virtual bool isUnusable();
/// @brief Return backend parameters
///
/// Returns the backend parameters
///
/// @return Parameters of the backend.
isc::db::DatabaseConnection::ParameterMap getParameters() const;
protected:
/// @brief Pointer to the implementation of the @c MySqlConfigBackendDHCPv4

View File

@@ -188,7 +188,7 @@ public:
parameters);
/// @brief Destructor.
~MySqlConfigBackendDHCPv6Impl();
~MySqlConfigBackendDHCPv6Impl() = default;
/// @brief Sends query to retrieve global parameter.
///
@@ -4110,7 +4110,7 @@ TaggedStatementArray tagged_statements = { {
}
};
}; // end anonymous namespace
} // end anonymous namespace
MySqlConfigBackendDHCPv6Impl::MySqlConfigBackendDHCPv6Impl(const DatabaseConnection::ParameterMap& parameters)
: MySqlConfigBackendImpl(parameters, &MySqlConfigBackendDHCPv6Impl::dbReconnect) {
@@ -4130,9 +4130,6 @@ MySqlConfigBackendDHCPv6Impl::MySqlConfigBackendDHCPv6Impl(const DatabaseConnect
conn_.makeReconnectCtl(timer_name_);
}
MySqlConfigBackendDHCPv6Impl::~MySqlConfigBackendDHCPv6Impl() {
}
MySqlConfigBackendDHCPv6::MySqlConfigBackendDHCPv6(const DatabaseConnection::ParameterMap& parameters)
: impl_(new MySqlConfigBackendDHCPv6Impl(parameters)), base_impl_(impl_) {
}
@@ -4142,6 +4139,11 @@ MySqlConfigBackendDHCPv6::isUnusable() {
return (impl_->conn_.isUnusable());
}
DatabaseConnection::ParameterMap
MySqlConfigBackendDHCPv6::getParameters() const {
return impl_->getParameters();
}
Subnet6Ptr
MySqlConfigBackendDHCPv6::getSubnet6(const ServerSelector& server_selector,
const std::string& subnet_prefix) const {

View File

@@ -636,6 +636,13 @@ public:
/// otherwise
virtual bool isUnusable();
/// @brief Return backend parameters
///
/// Returns the backend parameters
///
/// @return Parameters of the backend.
isc::db::DatabaseConnection::ParameterMap getParameters() const;
protected:
/// @brief Pointer to the implementation of the @c MySqlConfigBackendDHCPv6