diff options
author | Francis Dupont <fdupont@isc.org> | 2019-01-13 17:11:57 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2019-01-29 10:49:05 +0100 |
commit | 3d94a41a771a599055b091bb9c651732c189aa9f (patch) | |
tree | 9e3a6cd8645ea05603b13382745b30e30b1e24ed /src/lib/dhcpsrv/mysql_host_data_source.h | |
parent | [313-return-a-list-of-all-reservations-by-subnet-id] Finished the getAll[46] ... (diff) | |
download | kea-3d94a41a771a599055b091bb9c651732c189aa9f.tar.xz kea-3d94a41a771a599055b091bb9c651732c189aa9f.zip |
[313-return-a-list-of-all-reservations-by-subnet-id] Added getPage[46]
Diffstat (limited to 'src/lib/dhcpsrv/mysql_host_data_source.h')
-rw-r--r-- | src/lib/dhcpsrv/mysql_host_data_source.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/mysql_host_data_source.h b/src/lib/dhcpsrv/mysql_host_data_source.h index 2d9509710c..6f1e3b5c67 100644 --- a/src/lib/dhcpsrv/mysql_host_data_source.h +++ b/src/lib/dhcpsrv/mysql_host_data_source.h @@ -153,6 +153,42 @@ public: virtual ConstHostCollection getAll6(const SubnetID& subnet_id) const; + /// @brief Returns range of hosts in a DHCPv4 subnet. + /// + /// This method returns a page of @c Host objects which represent + /// reservations in a specified subnet. + /// + /// @param subnet_id Subnet identifier. + /// @param source_index Index of the source (unused). + /// @param lower_host_id Host identifier used as lower bound for the + /// returned range. + /// @param page_size maximum size of the page returned. + /// + /// @return Collection of const @c Host objects (may be empty). + virtual ConstHostCollection + getPage4(const SubnetID& subnet_id, + size_t& source_index, + uint64_t lower_host_id, + const HostPageSize& page_size) const; + + /// @brief Returns range of hosts in a DHCPv6 subnet. + /// + /// This method returns a page of @c Host objects which represent + /// reservations in a specified subnet. + /// + /// @param subnet_id Subnet identifier. + /// @param source_index Index of the source (unused). + /// @param lower_host_id Host identifier used as lower bound for the + /// returned range. + /// @param page_size maximum size of the page returned. + /// + /// @return Collection of const @c Host objects (may be empty). + virtual ConstHostCollection + getPage6(const SubnetID& subnet_id, + size_t& source_index, + uint64_t lower_host_id, + const HostPageSize& page_size) const; + /// @brief Returns a collection of hosts using the specified IPv4 address. /// /// This method may return multiple @c Host objects if they are connected |