2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 00:15:17 +00:00

[2546] Remove LeaseMgr::getLease4(address, subnetid)

As the address is th eprimary key of the table, there can only ever
be at most one lease in the database with a given address.  Additional
selection by subnet ID is not needed.
This commit is contained in:
Stephen Morris
2012-12-10 10:13:53 +00:00
parent 93eddf78d2
commit 084a166845
7 changed files with 0 additions and 108 deletions

View File

@@ -94,19 +94,6 @@ public:
/// failed.
virtual bool addLease(const Lease6Ptr& lease);
/// @brief Return IPv4 lease for specified IPv4 address and subnet_id
///
/// This method is used to get a lease for specific subnet_id. There can be
/// at most one lease for any given subnet, so this method returns a single
/// pointer.
///
/// @param addr address of the sought lease
/// @param subnet_id ID of the subnet the lease must belong to
///
/// @return smart pointer to the lease (or NULL if a lease is not found)
virtual Lease4Ptr getLease4(const isc::asiolink::IOAddress& addr,
SubnetID subnet_id) const;
/// @brief Returns an IPv4 lease for specified IPv4 address
///
/// This method return a lease that is associated with a given address.