mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 22:45:18 +00:00
[5207] Modify HostReservationParser to return parsed host.
This commit is contained in:
@@ -150,8 +150,12 @@ public:
|
||||
// Parse Host Reservations for this subnet if any.
|
||||
ConstElementPtr reservations = subnet->get("reservations");
|
||||
if (reservations) {
|
||||
HostCollection hosts;
|
||||
HostReservationsListParser<HostReservationParser4> parser;
|
||||
parser.parse(subnet_->getID(), reservations);
|
||||
parser.parse(subnet_->getID(), reservations, hosts);
|
||||
for (auto h = hosts.begin(); h != hosts.end(); ++h) {
|
||||
CfgMgr::instance().getStagingCfg()->getCfgHosts()->add(*h);
|
||||
}
|
||||
}
|
||||
|
||||
return (sn4ptr);
|
||||
|
Reference in New Issue
Block a user