]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#505] addressed review
authorRazvan Becheriu <razvan@isc.org>
Thu, 20 Aug 2020 20:07:52 +0000 (23:07 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 21 Aug 2020 10:04:30 +0000 (10:04 +0000)
src/lib/dhcpsrv/parsers/base_network_parser.cc
src/lib/dhcpsrv/parsers/dhcp_parsers.cc

index 4bcd1788901956b68f92df3662b958ae07f9ee55..00cbc5859e8f58095ad8b85401481e93d7863271 100644 (file)
@@ -125,7 +125,8 @@ BaseNetworkParser::parseCommon(const ConstElementPtr& network_data,
 
     if (has_renew && has_rebind && (renew > rebind)) {
         isc_throw(DhcpConfigError, "the value of renew-timer" << " (" << renew
-                  << ") is greater than rebind-timer" << " (" << rebind << ")");
+                  << ") is greater than the value of rebind-timer" << " ("
+                  << rebind << ")");
     }
 
     network->setValid(parseLifetime(network_data, "valid-lifetime"));
index 9f339d69b448f7761837baed1ed078a9d5c62c04..ee4ba53497470e3449e64472d262dc53d4f54e29 100644 (file)
@@ -767,7 +767,8 @@ Subnet4ConfigParser::initSubnet(data::ConstElementPtr params,
 
     if (has_renew && has_rebind && (renew > rebind)) {
         isc_throw(DhcpConfigError, "the value of renew-timer" << " (" << renew
-                  << ") is greater than rebind-timer" << " (" << rebind << ")");
+                  << ") is greater than the value of rebind-timer" << " ("
+                  << rebind << ")");
     }
 
     if (!subnet4->getValid().unspecified()) {
@@ -1262,7 +1263,8 @@ Subnet6ConfigParser::initSubnet(data::ConstElementPtr params,
 
     if (has_renew && has_rebind && (renew > rebind)) {
         isc_throw(DhcpConfigError, "the value of renew-timer" << " (" << renew
-                  << ") is greater than rebind-timer" << " (" << rebind << ")");
+                  << ") is greater than the value of rebind-timer" << " ("
+                  << rebind << ")");
     }
 
     if (!subnet6->getPreferred().unspecified()) {