diff options
author | Marcin Siodelski <marcin@isc.org> | 2016-08-22 11:40:01 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2016-08-23 12:09:36 +0200 |
commit | 7ca1d779673f6704d81fb39a71d37620fa2d9042 (patch) | |
tree | 0d13f3c56c4a01ea73eb3fb25eae06ae57b906aa /src/lib/dhcpsrv/cfg_hosts.cc | |
parent | [4552] Updated Host object with DHCPv4 specific message fields. (diff) | |
download | kea-7ca1d779673f6704d81fb39a71d37620fa2d9042.tar.xz kea-7ca1d779673f6704d81fb39a71d37620fa2d9042.zip |
[4552] Added support for DHCPv4 message fields into config parser.
Diffstat (limited to 'src/lib/dhcpsrv/cfg_hosts.cc')
-rw-r--r-- | src/lib/dhcpsrv/cfg_hosts.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/cfg_hosts.cc b/src/lib/dhcpsrv/cfg_hosts.cc index 2f4a0d1785..748fd4d273 100644 --- a/src/lib/dhcpsrv/cfg_hosts.cc +++ b/src/lib/dhcpsrv/cfg_hosts.cc @@ -572,10 +572,13 @@ CfgHosts::add4(const HostPtr& host) { DuidPtr duid = host->getDuid(); // There should be at least one resource reserved: hostname, IPv4 - // address, IPv6 address or prefix. + // address, siaddr, sname, file or IPv6 address or prefix. if (host->getHostname().empty() && (host->getIPv4Reservation().isV4Zero()) && - (!host->hasIPv6Reservation()) && + !host->hasIPv6Reservation() && + host->getNextServer().isV4Zero() && + host->getServerHostname().empty() && + host->getBootFileName().empty() && host->getCfgOption4()->empty() && host->getCfgOption6()->empty()) { std::ostringstream s; |