summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp4
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2020-12-11 09:54:07 +0100
committerRazvan Becheriu <razvan@isc.org>2021-01-22 18:15:20 +0100
commit635416a92fca5b2cbe426261540baecc73e72e6c (patch)
tree1dcedaa8bfee19eac1e2bca07b9dd8d65a9831fa /src/bin/dhcp4
parent[#1601] fixed typo (diff)
downloadkea-635416a92fca5b2cbe426261540baecc73e72e6c.tar.xz
kea-635416a92fca5b2cbe426261540baecc73e72e6c.zip
[#1601] resetInternalState can reset data for any type
Diffstat (limited to 'src/bin/dhcp4')
-rw-r--r--src/bin/dhcp4/ctrl_dhcp4_srv.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/dhcp4/ctrl_dhcp4_srv.cc b/src/bin/dhcp4/ctrl_dhcp4_srv.cc
index c3378b458a..d31db69d4c 100644
--- a/src/bin/dhcp4/ctrl_dhcp4_srv.cc
+++ b/src/bin/dhcp4/ctrl_dhcp4_srv.cc
@@ -870,7 +870,7 @@ ControlledDhcpv4Srv::processConfig(isc::data::ConstElementPtr config) {
cfg_db->setAppendedParameters("universe=4");
cfg_db->createManagers();
// Reset counters related to connections as all managers have been recreated.
- srv->getNetworkState()->resetInternalCounters();
+ srv->getNetworkState()->resetInternalState(NetworkState::CONNECTION);
} catch (const std::exception& ex) {
err << "Unable to open database: " << ex.what();
return (isc::config::createAnswer(1, err.str()));