Kea  1.9.9-git
cfg_shared_networks.cc
Go to the documentation of this file.
1 // Copyright (C) 2017-2019 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #include <config.h>
9 
10 using namespace isc::asiolink;
11 
12 namespace isc {
13 namespace dhcp {
14 
15 bool
16 CfgSharedNetworks4::hasNetworkWithServerId(const IOAddress& server_id) const {
17  const auto& index = networks_.get<SharedNetworkServerIdIndexTag>();
18  auto network_it = index.find(server_id);
19  return (network_it != index.cend());
20 }
21 
22 } // end of namespace isc::dhcp
23 } // end of namespace isc
A tag for accessing index by server identifier.
Defines the logger used by the top-level component of kea-dhcp-ddns.