2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[3628] Host reservation parser is now connected to the subnet parsers.

This commit is contained in:
Marcin Siodelski
2014-11-27 15:24:08 +01:00
parent 3e92bbdfd0
commit aacdfadac9
7 changed files with 361 additions and 3 deletions

View File

@@ -22,6 +22,8 @@
#include <dhcpsrv/option_space_container.h>
#include <dhcpsrv/parsers/dbaccess_parser.h>
#include <dhcpsrv/parsers/dhcp_parsers.h>
#include <dhcpsrv/parsers/host_reservation_parser.h>
#include <dhcpsrv/parsers/host_reservations_list_parser.h>
#include <util/encode/hex.h>
#include <util/strutil.h>
@@ -144,6 +146,14 @@ public:
<< subnet->getPosition() << ")");
}
}
// Parse Host Reservations for this subnet if any.
ConstElementPtr reservations = subnet->get("reservations");
if (reservations) {
ParserPtr parser(new HostReservationsListParser<
HostReservationParser4>(subnet_->getID()));
parser->build(reservations);
}
}
/// @brief Commits subnet configuration.