mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 06:55:16 +00:00
[#505] addressed review
This commit is contained in:
@@ -125,7 +125,8 @@ BaseNetworkParser::parseCommon(const ConstElementPtr& network_data,
|
|||||||
|
|
||||||
if (has_renew && has_rebind && (renew > rebind)) {
|
if (has_renew && has_rebind && (renew > rebind)) {
|
||||||
isc_throw(DhcpConfigError, "the value of renew-timer" << " (" << renew
|
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"));
|
network->setValid(parseLifetime(network_data, "valid-lifetime"));
|
||||||
|
@@ -767,7 +767,8 @@ Subnet4ConfigParser::initSubnet(data::ConstElementPtr params,
|
|||||||
|
|
||||||
if (has_renew && has_rebind && (renew > rebind)) {
|
if (has_renew && has_rebind && (renew > rebind)) {
|
||||||
isc_throw(DhcpConfigError, "the value of renew-timer" << " (" << renew
|
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()) {
|
if (!subnet4->getValid().unspecified()) {
|
||||||
@@ -1262,7 +1263,8 @@ Subnet6ConfigParser::initSubnet(data::ConstElementPtr params,
|
|||||||
|
|
||||||
if (has_renew && has_rebind && (renew > rebind)) {
|
if (has_renew && has_rebind && (renew > rebind)) {
|
||||||
isc_throw(DhcpConfigError, "the value of renew-timer" << " (" << renew
|
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()) {
|
if (!subnet6->getPreferred().unspecified()) {
|
||||||
|
Reference in New Issue
Block a user