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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user