Kea 2.6.0
cfg_shared_networks.cc
Go to the documentation of this file.
1// Copyright (C) 2017-2024 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
10using namespace isc::asiolink;
11
12namespace isc {
13namespace dhcp {
14
15bool
17 auto const& 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
bool hasNetworkWithServerId(const asiolink::IOAddress &server_id) const
Checks if specified server identifier has been specified for any network.
SharedNetwork4Collection networks_
Multi index container holding shared networks.
Defines the logger used by the top-level component of kea-lfc.
A tag for accessing index by server identifier.