summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/writable_host_data_source.h
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2019-01-11 16:48:30 +0100
committerFrancis Dupont <fdupont@isc.org>2019-01-29 10:49:05 +0100
commit2a5750c931866bb27e7f8e5b8bcfb30d4cf532ac (patch)
treea35c76bba6455e26beb3220dbd233f3d47779c55 /src/lib/dhcpsrv/writable_host_data_source.h
parentimproved error trace in case ./configure cannot find mysql dependencies (diff)
downloadkea-2a5750c931866bb27e7f8e5b8bcfb30d4cf532ac.tar.xz
kea-2a5750c931866bb27e7f8e5b8bcfb30d4cf532ac.zip
[313-return-a-list-of-all-reservations-by-subnet-id] Added getAll[46] by subnet - checkpoint of the day
Diffstat (limited to 'src/lib/dhcpsrv/writable_host_data_source.h')
-rw-r--r--src/lib/dhcpsrv/writable_host_data_source.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/writable_host_data_source.h b/src/lib/dhcpsrv/writable_host_data_source.h
index 931ed12995..d3965c9e2f 100644
--- a/src/lib/dhcpsrv/writable_host_data_source.h
+++ b/src/lib/dhcpsrv/writable_host_data_source.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014-2019 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
@@ -41,6 +41,22 @@ public:
const uint8_t* identifier_begin,
const size_t identifier_len) = 0;
+ /// @brief Returns a collection of hosts in the specified DHCPv4 subnet.
+ ///
+ /// @param subnet_id Subnet identifier.
+ ///
+ /// @return Collection of non-const @c Host objects.
+ virtual HostCollection
+ getAll4(const SubnetID& subnet_id) = 0;
+
+ /// @brief Returns a collection of hosts in the specified DHCPv6 subnet.
+ ///
+ /// @param subnet_id Subnet identifier.
+ ///
+ /// @return Collection of non-const @c Host objects.
+ virtual HostCollection
+ getAll6(const SubnetID& subnet_id) = 0;
+
/// @brief Returns a collection of hosts using the specified IPv4 address.
///
/// This method may return multiple @c Host objects if they are connected