diff options
Diffstat (limited to 'src/bin/dhcp6/json_config_parser.cc')
-rw-r--r-- | src/bin/dhcp6/json_config_parser.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/bin/dhcp6/json_config_parser.cc b/src/bin/dhcp6/json_config_parser.cc index 7022aeda86..1394f048ff 100644 --- a/src/bin/dhcp6/json_config_parser.cc +++ b/src/bin/dhcp6/json_config_parser.cc @@ -442,18 +442,6 @@ configureDhcp6Server(Dhcpv6Srv& server, isc::data::ConstElementPtr config_set, // Close DHCP sockets and remove any existing timers. if (!check_only) { - // If mysql or postgresql lease and host managers were configured, they - // need to be destroy before calling unregisterTimers as they are - // responsible for unregistering own connection timers. A memfile lease - // manager and an empty host manager will be created instead. - auto running_cfg = CfgMgr::instance().getCurrentCfg(); - auto parameters = DatabaseConnection::parse(running_cfg->getCfgDbAccess()->getLeaseDbAccessString()); - if (parameters["type"] != "memfile") { - CfgDbAccess cfg_db; - cfg_db.setAppendedParameters("universe=6"); - LeaseMgrFactory::create(cfg_db.getLeaseDbAccessString()); - } - HostMgr::create(); IfaceMgr::instance().closeSockets(); TimerMgr::instance()->unregisterTimers(); server.discardPackets(); |