mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 23:15:20 +00:00
[3146] getLease6() methods now have extra param: LeaseType
This commit is contained in:
@@ -244,6 +244,7 @@ public:
|
||||
/// The assumption here is that there will not be site or link-local
|
||||
/// addresses used, so there is no way of having address duplication.
|
||||
///
|
||||
/// @param type specifies lease type: (NA, TA or PD)
|
||||
/// @param addr address of the searched lease
|
||||
///
|
||||
/// @return smart pointer to the lease (or NULL if a lease is not found)
|
||||
@@ -255,7 +256,8 @@ public:
|
||||
/// programming error.
|
||||
/// @throw isc::dhcp::DbOperationError An operation on the open database has
|
||||
/// failed.
|
||||
virtual Lease6Ptr getLease6(const isc::asiolink::IOAddress& addr) const;
|
||||
virtual Lease6Ptr getLease6(Lease6::LeaseType type,
|
||||
const isc::asiolink::IOAddress& addr) const;
|
||||
|
||||
/// @brief Returns existing IPv6 leases for a given DUID+IA combination
|
||||
///
|
||||
@@ -264,6 +266,7 @@ public:
|
||||
/// can be more than one. Thus return type is a container, not a single
|
||||
/// pointer.
|
||||
///
|
||||
/// @param type specifies lease type: (NA, TA or PD)
|
||||
/// @param duid client DUID
|
||||
/// @param iaid IA identifier
|
||||
///
|
||||
@@ -276,11 +279,12 @@ public:
|
||||
/// programming error.
|
||||
/// @throw isc::dhcp::DbOperationError An operation on the open database has
|
||||
/// failed.
|
||||
virtual Lease6Collection getLease6(const DUID& duid,
|
||||
virtual Lease6Collection getLease6(Lease6::LeaseType type, const DUID& duid,
|
||||
uint32_t iaid) const;
|
||||
|
||||
/// @brief Returns existing IPv6 lease for a given DUID+IA combination
|
||||
///
|
||||
/// @param type specifies lease type: (NA, TA or PD)
|
||||
/// @param duid client DUID
|
||||
/// @param iaid IA identifier
|
||||
/// @param subnet_id subnet id of the subnet the lease belongs to
|
||||
@@ -294,8 +298,8 @@ public:
|
||||
/// programming error.
|
||||
/// @throw isc::dhcp::DbOperationError An operation on the open database has
|
||||
/// failed.
|
||||
virtual Lease6Ptr getLease6(const DUID& duid, uint32_t iaid,
|
||||
SubnetID subnet_id) const;
|
||||
virtual Lease6Ptr getLease6(Lease6::LeaseType type, const DUID& duid,
|
||||
uint32_t iaid, SubnetID subnet_id) const;
|
||||
|
||||
/// @brief Updates IPv4 lease.
|
||||
///
|
||||
|
Reference in New Issue
Block a user