summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/pgsql_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/pgsql_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/pgsql_host_data_source.h')
-rw-r--r--src/lib/dhcpsrv/pgsql_host_data_source.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/pgsql_host_data_source.h b/src/lib/dhcpsrv/pgsql_host_data_source.h
index 66b024a5f7..f829d973bb 100644
--- a/src/lib/dhcpsrv/pgsql_host_data_source.h
+++ b/src/lib/dhcpsrv/pgsql_host_data_source.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2016-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-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
@@ -158,6 +158,28 @@ public:
getAll(const Host::IdentifierType& identifier_type,
const uint8_t* identifier_begin, const size_t identifier_len) const;
+ /// @brief Return all hosts in a DHCPv4 subnet.
+ ///
+ /// This method returns all @ref Host objects which represent reservations
+ /// in a specified subnet.
+ ///
+ /// @param subnet_id subnet identifier to filter by
+ ///
+ /// @return Collection of const @ref Host objects.
+ virtual ConstHostCollection
+ getAll4(const SubnetID& subnet_id) const override;
+
+ /// @brief Return all hosts in a DHCPv6 subnet.
+ ///
+ /// This method returns all @ref Host objects which represent reservations
+ /// in a specified subnet.
+ ///
+ /// @param subnet_id subnet identifier to filter by
+ ///
+ /// @return Collection of const @ref Host objects.
+ virtual ConstHostCollection
+ getAll6(const SubnetID& subnet_id) const override;
+
/// @brief Returns a collection of hosts using the specified IPv4 address.
///
/// This method may return multiple @c Host objects if they are connected