mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 07:25:18 +00:00
[5531] Checkpoint before first syntax change
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2012-2017 Internet Systems Consortium, Inc. ("ISC")
|
||||
// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
|
||||
//
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
@@ -425,6 +425,17 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set,
|
||||
continue;
|
||||
}
|
||||
|
||||
// For now only support empty or singleton, ignoring extra entries.
|
||||
if (config_pair.first == "hosts-databases") {
|
||||
if (config_pair.second->size() == 0) {
|
||||
continue;
|
||||
}
|
||||
DbAccessParser parser(DbAccessParser::HOSTS_DB);
|
||||
CfgDbAccessPtr cfg_db_access = srv_cfg->getCfgDbAccess();
|
||||
parser.parse(cfg_db_access, config_pair.second->get(0));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (config_pair.first == "subnet4") {
|
||||
SrvConfigPtr srv_cfg = CfgMgr::instance().getStagingCfg();
|
||||
Subnets4ListConfigParser subnets_parser;
|
||||
|
Reference in New Issue
Block a user