mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 23:15:20 +00:00
[master] Merge branch 'trac5030'
This commit is contained in:
@@ -152,9 +152,8 @@ public:
|
||||
// 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);
|
||||
HostReservationsListParser<HostReservationParser4> parser;
|
||||
parser.parse(subnet_->getID(), reservations);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -444,8 +443,7 @@ DhcpConfigParser* createGlobalDhcp4ConfigParser(const std::string& config_id,
|
||||
parser = new ExpirationConfigParser();
|
||||
} else if (config_id.compare("client-classes") == 0) {
|
||||
parser = new ClientClassDefListParser(config_id, globalContext());
|
||||
} else if (config_id.compare("host-reservation-identifiers") == 0) {
|
||||
parser = new HostReservationIdsParser4();
|
||||
// host-reservation-identifiers have been converted to SimpleParser already.
|
||||
} else {
|
||||
isc_throw(DhcpConfigError,
|
||||
"unsupported global configuration parameter: "
|
||||
@@ -642,6 +640,12 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (config_pair.first == "host-reservation-identifiers") {
|
||||
HostReservationIdsParser4 parser;
|
||||
parser.parse(config_pair.second);
|
||||
continue;
|
||||
}
|
||||
|
||||
ParserPtr parser(createGlobalDhcp4ConfigParser(config_pair.first,
|
||||
config_pair.second));
|
||||
LOG_DEBUG(dhcp4_logger, DBG_DHCP4_DETAIL, DHCP4_PARSER_CREATED)
|
||||
|
Reference in New Issue
Block a user