diff options
author | Dan Theisen <djt@isc.org> | 2022-07-03 21:28:27 +0200 |
---|---|---|
committer | Dan Theisen <djt@isc.org> | 2022-07-08 21:18:54 +0200 |
commit | e53b1a434f8a5d047d8fa1a14e4f449b9ac0bd09 (patch) | |
tree | 4de35c21dd533c0e3bbc4346f92777124887632b /src/lib/dhcpsrv/cfg_subnets4.cc | |
parent | [#2432] Added a note about no longer needing autogeneration (diff) | |
download | kea-e53b1a434f8a5d047d8fa1a14e4f449b9ac0bd09.tar.xz kea-e53b1a434f8a5d047d8fa1a14e4f449b9ac0bd09.zip |
[#2419] Begin adding stats to track HR assignment conflicts
Diffstat (limited to 'src/lib/dhcpsrv/cfg_subnets4.cc')
-rw-r--r-- | src/lib/dhcpsrv/cfg_subnets4.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/cfg_subnets4.cc b/src/lib/dhcpsrv/cfg_subnets4.cc index d74a4c52e6..f6fce4a79f 100644 --- a/src/lib/dhcpsrv/cfg_subnets4.cc +++ b/src/lib/dhcpsrv/cfg_subnets4.cc @@ -527,11 +527,15 @@ CfgSubnets4::updateStatistics() { generateName("subnet", subnet_id, "total-addresses"), static_cast<int64_t> (subnet4->getPoolCapacity(Lease::TYPE_V4))); - const std::string& name = + std::string name = StatsMgr::generateName("subnet", subnet_id, "cumulative-assigned-addresses"); if (!stats_mgr.getObservation(name)) { stats_mgr.setValue(name, static_cast<int64_t>(0)); } + name = StatsMgr::generateName("subnet", subnet_id, "reservation-conflicts"); + if (!stats_mgr.getObservation(name)) { + stats_mgr.setValue(name, static_cast<int64_t>(0)); + } } // Only recount the stats if we have subnets. |