2
0
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:
Francis Dupont
2017-03-16 23:38:52 +01:00
parent 4fa4c9a0e6
commit d996bf25a1
18 changed files with 342 additions and 131 deletions

View File

@@ -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;
}