diff options
author | Francis Dupont <fdupont@isc.org> | 2019-09-29 09:28:13 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2019-10-15 11:45:32 +0200 |
commit | 34ed1671950db527566de74f47c9b334f44688ab (patch) | |
tree | 8e61d98b6f1f8c546ca2d1761fab878c8085f283 /src/lib/dhcpsrv/writable_host_data_source.h | |
parent | [#934,!531] kea-centos-8 for virtualbox and lxc uploaded and available (diff) | |
download | kea-34ed1671950db527566de74f47c9b334f44688ab.tar.xz kea-34ed1671950db527566de74f47c9b334f44688ab.zip |
[392-search-of-reservations-by-hostname] Checkpont: add new methods - tests to write
Diffstat (limited to 'src/lib/dhcpsrv/writable_host_data_source.h')
-rw-r--r-- | src/lib/dhcpsrv/writable_host_data_source.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/writable_host_data_source.h b/src/lib/dhcpsrv/writable_host_data_source.h index 38a3842517..1f68b79a47 100644 --- a/src/lib/dhcpsrv/writable_host_data_source.h +++ b/src/lib/dhcpsrv/writable_host_data_source.h @@ -57,6 +57,41 @@ public: virtual HostCollection getAll6(const SubnetID& subnet_id) = 0; + /// @brief Return all hosts with a hostname. + /// + /// This method returns all @c Host objects which represent reservations + /// using a specified hostname. + /// + /// @param hostname The lower case hostname. + /// + /// @return Collection of @c Host objects. + virtual HostCollection + getAllbyHostname(const std::string& hostname) = 0; + + /// @brief Return all hosts with a hostname in a DHCPv4 subnet. + /// + /// This method returns all @c Host objects which represent reservations + /// using a specified hostname in a specified subnet. + /// + /// @param hostname The lower case hostname. + /// @param subnet_id Subnet identifier. + /// + /// @return Collection of @c Host objects. + virtual HostCollection + getAllbyHostname4(const std::string& hostname, const SubnetID& subnet_id) = 0; + + /// @brief Return all hosts with a hostname in a DHCPv6 subnet. + /// + /// This method returns all @c Host objects which represent reservations + /// using a specified hostname in a specified subnet. + /// + /// @param hostname The lower case hostname. + /// @param subnet_id Subnet identifier. + /// + /// @return Collection of @c Host objects. + virtual HostCollection + getAllbyHostname6(const std::string& hostname, const SubnetID& subnet_id) = 0; + /// @brief Returns range of hosts in a DHCPv4 subnet. /// /// This method implements paged browsing of host databases. The |