Commit be77596d authored by Francis Dupont's avatar Francis Dupont
Browse files

[3882a] Updated extended version code

parent a3ab0e00
......@@ -474,12 +474,12 @@ DControllerBase::getVersion(bool extended) {
tmp << isc::cryptolink::CryptoLink::getVersion() << std::endl;
tmp << "database:" << std::endl;
#ifdef HAVE_MYSQL
tmp << "MySQL backend" << std::endl;
tmp << isc::dhcp::MySqlLeaseMgr::getDBVersion() << std::endl;
#endif
#ifdef HAVE_PGSQL
tmp << "PostgreSQL backend" << std::endl;
tmp << isc::dhcp::PgSqlLeaseMgr::getDBVersion() << std::endl;
#endif
tmp << "Memfile backend";
tmp << isc::dhcp::Memfile_LeaseMgr::getDBVersion();
// @todo: more details about database runtime
}
......
......@@ -2272,15 +2272,15 @@ Dhcpv4Srv::getVersion(bool extended) {
tmp << "linked with:" << endl;
tmp << Logger::getVersion() << endl;
tmp << CryptoLink::getVersion() << endl;
tmp << "database:" << endl;
#ifdef HAVE_MYSQL
tmp << "database: MySQL";
#else
#ifdef HAVE_PGSQL
tmp << "database: PostgreSQL";
#else
tmp << "no database";
tmp << MySqlLeaseMgr::getDBVersion() << endl;
#endif
#ifdef HAVE_PGSQL
tmp << PgSqlLeaseMgr::getDBVersion() << endl;
#endif
tmp << Memfile_LeaseMgr::getDBVersion();
// @todo: more details about database runtime
}
......
......@@ -2854,15 +2854,15 @@ Dhcpv6Srv::getVersion(bool extended) {
tmp << "linked with:" << endl;
tmp << Logger::getVersion() << endl;
tmp << CryptoLink::getVersion() << endl;
tmp << "database:" << endl;
#ifdef HAVE_MYSQL
tmp << "database: MySQL";
#else
#ifdef HAVE_PGSQL
tmp << "database: PostgreSQL";
#else
tmp << "no database";
tmp << MySqlLeaseMgr::getDBVersion() << endl;
#endif
#ifdef HAVE_PGSQL
tmp << PgSqlLeaseMgr::getDBVersion() << endl;
#endif
tmp << Memfile_LeaseMgr::getDBVersion();
// @todo: more details about database runtime
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment