% DHCPSRV_LEASE_SANITY_FAIL The lease %1 with subnet-id %2 failed subnet-id checks.
-% DHCPSRV_LEASE_SANITY_FIXED The lease %2 with subnet-id %2 failed subnet-id checks, but was correced to subnet-id %3.
+% DHCPSRV_LEASE_SANITY_FIXED The lease %1 with subnet-id %2 failed subnet-id checks, but was correced to subnet-id %3.
-% DHCPSRV_LEASE_SANITY_FAIL_DISCARD The lease %2 with subnet-id %2 failed subnet-id checks and was dropped.
+% DHCPSRV_LEASE_SANITY_FAIL_DISCARD The lease %1 with subnet-id %2 failed subnet-id checks and was dropped.
% DHCPSRV_MEMFILE_ADD_ADDR4 adding IPv4 lease with address %1
A debug message issued when the server is about to add an IPv4 lease
}
template<typename LeasePtrType, typename SubnetsType>
-void SanityChecker::checkLeaseInternal(LeasePtrType lease, const CfgConsistencyPtr& checks,
+void SanityChecker::checkLeaseInternal(LeasePtrType& lease, const CfgConsistencyPtr& checks,
const SubnetsType& subnets) {
if (checks->getLeaseSanityCheck() == CfgConsistency::LEASE_CHECK_NONE) {
/// specified here)
/// @param subnets configuration structure with subnets
template<typename LeaseType, typename SubnetsType>
- void checkLeaseInternal(LeaseType lease, const CfgConsistencyPtr& checks,
+ void checkLeaseInternal(LeaseType& lease, const CfgConsistencyPtr& checks,
const SubnetsType& subnets);
/// @brief Internal method for finding appropriate subnet-id
}
TEST_F(SanityChecksTest, memfileAdd4_checksFixdel1) {
- leaseAddCheck4("192.0.2.1", 1, "192.0.2.0/24", 2, CfgConsistency::LEASE_CHECK_FIX_DEL, true, 1);
+ leaseAddCheck4("192.0.2.1", 1, "192.0.2.0/24", 2, CfgConsistency::LEASE_CHECK_FIX_DEL, true, 2);
}
TEST_F(SanityChecksTest, memfileAdd4_checksFixdel2) {