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

[#487,!242] Use Optionals in the Subnet and Shared networks.

This commit is contained in:
Marcin Siodelski
2019-02-26 12:45:14 +01:00
parent 69681285d0
commit c3ec4cb50a
15 changed files with 215 additions and 103 deletions

View File

@@ -210,14 +210,14 @@ public:
continue;
}
if (iface != (*subnet)->getIface()) {
if ((*subnet)->getIface() != iface) {
isc_throw(DhcpConfigError, "Subnet " << (*subnet)->toText()
<< " has specified interface " << (*subnet)->getIface()
<< ", but earlier subnet in the same shared-network"
<< " or the shared-network itself used " << iface);
}
if (authoritative != (*subnet)->getAuthoritative()) {
if ((*subnet)->getAuthoritative() != authoritative) {
isc_throw(DhcpConfigError, "Subnet " << (*subnet)->toText()
<< " has different authoritative setting "
<< (*subnet)->getAuthoritative()