mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-05 00:15:17 +00:00
[393-global-search-through-leases-by-mac-or-hostname-w-o-specifying-a-subnet-id] Added get leases 4 and 4 by hostname to the API
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
|
||||
// Copyright (C) 2012-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
|
||||
@@ -202,6 +202,13 @@ public:
|
||||
/// @return Lease collection (may be empty if no IPv4 lease found).
|
||||
virtual Lease4Collection getLeases4(SubnetID subnet_id) const;
|
||||
|
||||
/// @brief Returns all IPv4 leases for the particular hostname.
|
||||
///
|
||||
/// @param hostname hostname in lower case.
|
||||
///
|
||||
/// @return Lease collection (may be empty if no IPv4 lease found).
|
||||
virtual Lease4Collection getLeases4(const std::string& hostname) const;
|
||||
|
||||
/// @brief Returns all IPv4 leases.
|
||||
///
|
||||
/// @return Lease collection (may be empty if no IPv4 lease found).
|
||||
@@ -305,6 +312,13 @@ public:
|
||||
/// @return Lease collection (may be empty if no IPv6 lease found).
|
||||
virtual Lease6Collection getLeases6(SubnetID subnet_id) const;
|
||||
|
||||
/// @brief Returns all IPv6 leases for the particular hostname.
|
||||
///
|
||||
/// @param hostname hostname in lower case.
|
||||
///
|
||||
/// @return Lease collection (may be empty if no IPv6 lease found).
|
||||
virtual Lease6Collection getLeases6(const std::string& hostname) const;
|
||||
|
||||
/// @brief Returns all IPv6 leases.
|
||||
///
|
||||
/// @return Lease collection (may be empty if no IPv6 lease found).
|
||||
@@ -316,7 +330,7 @@ public:
|
||||
/// @return Lease collection (may be empty if no IPv6 lease found)
|
||||
/// for the DUID.
|
||||
virtual Lease6Collection getLeases6(const DUID& duid) const;
|
||||
|
||||
|
||||
/// @brief Returns range of IPv6 leases using paging.
|
||||
///
|
||||
/// This method implements paged browsing of the lease database. The first
|
||||
@@ -581,6 +595,7 @@ public:
|
||||
GET_LEASE4_HWADDR_SUBID, // Get lease4 by HW address & subnet ID
|
||||
GET_LEASE4_PAGE, // Get page of leases beginning with an address
|
||||
GET_LEASE4_SUBID, // Get IPv4 leases by subnet ID
|
||||
GET_LEASE4_HOSTNAME, // Get IPv4 leases by hostname
|
||||
GET_LEASE4_EXPIRE, // Get lease4 by expiration.
|
||||
GET_LEASE6, // Get all IPv6 leases
|
||||
GET_LEASE6_ADDR, // Get lease6 by address
|
||||
@@ -589,6 +604,7 @@ public:
|
||||
GET_LEASE6_PAGE, // Get page of leases beginning with an address
|
||||
GET_LEASE6_SUBID, // Get IPv6 leases by subnet ID
|
||||
GET_LEASE6_DUID, // Get IPv6 leases by DUID
|
||||
GET_LEASE6_HOSTNAME, // Get IPv6 leases by hostname
|
||||
GET_LEASE6_EXPIRE, // Get lease6 by expiration.
|
||||
INSERT_LEASE4, // Add entry to lease4 table
|
||||
INSERT_LEASE6, // Add entry to lease6 table
|
||||
|
Reference in New Issue
Block a user