% DHCPSRV_DDNS_TTL_TOO_SMALL %1 of lease life time %2 is %3, using minimum of %4 instead.
Logged at debug log level 55.
A debug message issued when the DDNS TTL value calculated using the
-ddns-ttl-percent if specfieed or (0.33 if not) is too small. Kea will
-ignore the value and is the minimum (ddns-ttl-min is specifed or 600
+ddns-ttl-percent if specified or (0.33 if not) is too small. Kea will
+ignore the value and use the minimum (ddns-ttl-min if specifed or 600
seconds if not). The message details include the percentage, the lease
life time, the calculated TTL, and the value actually used.
A debug message issued when the DDNS TTL value calculated using the
ddns-ttl-percent if specfieed or (0.33 if not) is larger than the
the specified value of ddns-ttl-max. Kea will ignore the value and
-use is the specified maxinimum instead. The message details include
+use the specified maximum instead. The message details include
the percentage, the lease life time, the calculated TTL, and the value
actually used.
// Adjust for minimum and maximum.
// If we have a custom mininum enforce it, otherwise per RFC 4702 it
// should not less than 600.
- uint32_t ttl_min = (ddns_ttl_min.get() > 0) ? ddns_ttl_min.get() : 600;
+ uint32_t ttl_min = (ddns_ttl_min.get() > 0) ? ddns_ttl_min.get() : 600;
if (ttl < ttl_min) {
LOG_DEBUG(dhcpsrv_logger, DHCPSRV_DBG_TRACE_DETAIL_DATA,
DHCPSRV_DDNS_TTL_TOO_SMALL)
const std::string& name) const;
/// @brief Conducts sanity checks on global DDNS ttl parameters:
- /// ddsn-ttl, ddsn-ttl-percent, ddns-ttl-min, ddns-ttl-max
+ /// ddns-ttl, ddns-ttl-percent, ddns-ttl-min, ddns-ttl-max
///
- /// If ddns-ttl is specified none of the others can be
- /// If ddns-ttl-min and ddsn-ttl-max are specified max cannot
+ /// If ddns-ttl is specified none of the others can be.
+ /// If ddns-ttl-min and ddns-ttl-max are specified max cannot
/// be less than min.
///
/// @throw Throws BadValue if any of the rules are violated.
CfgMgr::instance().clear();
}
- // Verifies valid permuatations of ddns-ttl-percent, ddns-ttl,
- // ddns-ttl-min, and ddns-ttl-max values for SubnetX.
+ // Verifies valid permuatations of ddns-ttl-percent, ddns-ttl,
+ // ddns-ttl-min, and ddns-ttl-max values for SubnetX.
template<typename ParserType, typename NetworkPtrType>
void validDdnsTtlParmatersSubnet(int family) {
struct Scenario {
// Explicit ttl wins over specified percent
{ __LINE__, 2100, 0.25, 900, no_min, no_max, 900 },
- // Explicit ttl wins over specified minumum
+ // Explicit ttl wins over specified minimum
{ __LINE__, 2100, no_percent, 900, 1000, no_max, 900 },
// Explicit ttl wins over specified maxiumum
{ __LINE__, 2100, no_percent, 900, no_min, 800, 900 },
- // Specified percent > RFC minumum
+ // Specified percent > RFC minimum
{ __LINE__, 2100, 0.5, no_ttl, no_min, no_max, 1050 },
- // Specified percent < RFC minumum
+ // Specified percent < RFC minimum
{ __LINE__, 2100, 0.25, no_ttl, no_min, no_max, 600 },
// Specified percent < specified minimum < RFC minimum
/// @return A reference to the Network created if parsing is successful
virtual Network& parseIntoNetwork(ConstElementPtr test_config) = 0;
- // Verifies valid permuatations of ddns-ttl-percent, ddns-ttl,
+ // Verifies valid permutations of ddns-ttl-percent, ddns-ttl,
// ddns-ttl-min, and ddns-ttl-max values for SharedNetwork4.
template<typename NetworkTypePtr, typename ParserType>
void validDdnsTtlParmatersTest() {
}
}
- // Verifies invalid permuatations of ddns-ttl-percent, ddns-ttl,
+ // Verifies invalid permatations of ddns-ttl-percent, ddns-ttl,
// ddns-ttl-min, and ddns-ttl-max values for SharedNetwork.
template<typename ParserType>
void invalidDdnsTtlParmatersTest() {
" (<string>:1:2)");
}
-// Verifies valid permuatations of ddns-ttl-percent, ddns-ttl,
+// Verifies valid permutations of ddns-ttl-percent, ddns-ttl,
// ddns-ttl-min, and ddns-ttl-max values for SharedNetwork4.
TEST_F(SharedNetwork4ParserTest, validDdnsTtlParmaters4) {
validDdnsTtlParmatersTest<SharedNetwork4Ptr, SharedNetwork4Parser>();
}
-// Verifies valid permuatations of ddns-ttl-percent, ddns-ttl,
+// Verifies valid permutations of ddns-ttl-percent, ddns-ttl,
// ddns-ttl-min, and ddns-ttl-max values for SharedNetwork6.
TEST_F(SharedNetwork6ParserTest, validDdnsTtlParmaters6) {
validDdnsTtlParmatersTest<SharedNetwork6Ptr, SharedNetwork6Parser>();
}
-// Verifies invalid permuatations of ddns-ttl-percent, ddns-ttl,
+// Verifies invalid permutations of ddns-ttl-percent, ddns-ttl,
// ddns-ttl-min, and ddns-ttl-max values for Subnet4.
TEST_F(SharedNetwork4ParserTest, invalidDdnsTtlParmaters4) {
invalidDdnsTtlParmatersTest<SharedNetwork4Parser>();
}
-// Verifies invalid permuatations of ddns-ttl-percent, ddns-ttl,
+// Verifies invalid permutations of ddns-ttl-percent, ddns-ttl,
// ddns-ttl-min, and ddns-ttl-max values for Subnet6.
TEST_F(SharedNetwork6ParserTest, invalidDdnsTtlParmaters6) {
invalidDdnsTtlParmatersTest<SharedNetwork6Parser>();
}
}
-// Verifies that sanityChecksDdnsTtlParams works as expected.
+// Verifies that sanityChecksDdnsTtlParameters works as expected.
TEST_F(SrvConfigTest, sanityChecksDdnsTtlParameters) {
{
SCOPED_TRACE("none");
///
/// @param val double to convert
/// @param precision number of maxium number decimal places to output
-/// @return string representaion of val
+/// @return string representation of val
std::string dumpDouble(double val, size_t precision = 5);
} // namespace str