mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
[3389a] Commit before regen
This commit is contained in:
@@ -483,9 +483,18 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set,
|
||||
}
|
||||
|
||||
if (config_pair.first == "interfaces-config") {
|
||||
ElementPtr ifaces_cfg =
|
||||
boost::const_pointer_cast<Element>(config_pair.second);
|
||||
if (check_only) {
|
||||
// No re-detection in check only mode
|
||||
ifaces_cfg->set("re-detect", Element::create(false));
|
||||
} else if (!ifaces_cfg->contains("re-detect")) {
|
||||
// Else the default is to re-detect
|
||||
ifaces_cfg->set("re-detect", Element::create(true));
|
||||
}
|
||||
IfacesConfigParser parser(AF_INET);
|
||||
CfgIfacePtr cfg_iface = srv_cfg->getCfgIface();
|
||||
parser.parse(cfg_iface, config_pair.second);
|
||||
parser.parse(cfg_iface, ifaces_cfg);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user