mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
[#1065] fixed rebase
This commit is contained in:
@@ -1858,7 +1858,6 @@ LeaseCmdsImpl::lease4WipeHandler(CalloutHandle& handle) {
|
||||
StatsMgr::generateName("subnet", id, "assigned-addresses"),
|
||||
int64_t(0));
|
||||
|
||||
|
||||
StatsMgr::instance().setValue(
|
||||
StatsMgr::generateName("subnet", id, "declined-addresses"),
|
||||
int64_t(0));
|
||||
|
@@ -4620,12 +4620,6 @@ TEST_F(LeaseCmdsTest, Lease6Update) {
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
99, "assigned-pds"))->getInteger().first, 0);
|
||||
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
66, "declined-addresses"))->getInteger().first, 2);
|
||||
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
99, "declined-addresses"))->getInteger().first, 2);
|
||||
|
||||
// Now send the command.
|
||||
string txt =
|
||||
"{\n"
|
||||
@@ -4687,6 +4681,12 @@ TEST_F(LeaseCmdsTest, Lease6UpdateWithStats) {
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
99, "assigned-pds"))->getInteger().first, 0);
|
||||
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
66, "declined-addresses"))->getInteger().first, 2);
|
||||
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
99, "declined-addresses"))->getInteger().first, 2);
|
||||
|
||||
// Now send the command.
|
||||
string txt =
|
||||
"{\n"
|
||||
@@ -4754,12 +4754,6 @@ TEST_F(LeaseCmdsTest, Lease6UpdateNoSubnetId) {
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
99, "assigned-pds"))->getInteger().first, 0);
|
||||
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
66, "declined-addresses"))->getInteger().first, 2);
|
||||
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
99, "declined-addresses"))->getInteger().first, 2);
|
||||
|
||||
// Now send the command.
|
||||
string txt =
|
||||
"{\n"
|
||||
@@ -4823,6 +4817,12 @@ TEST_F(LeaseCmdsTest, Lease6UpdateNoSubnetIdWithStats) {
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
99, "assigned-pds"))->getInteger().first, 0);
|
||||
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
66, "declined-addresses"))->getInteger().first, 2);
|
||||
|
||||
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
|
||||
99, "declined-addresses"))->getInteger().first, 2);
|
||||
|
||||
// Now send the command.
|
||||
string txt =
|
||||
"{\n"
|
||||
|
Reference in New Issue
Block a user