]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2571] Addressed review comments
authorThomas Markwalder <tmark@isc.org>
Wed, 21 Sep 2022 18:30:07 +0000 (14:30 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 23 Sep 2022 09:52:43 +0000 (05:52 -0400)
src/lib/dhcpsrv/lease_mgr.cc
src/lib/dhcpsrv/lease_mgr.h

index bc54d0e9731570331fe0abc78b07f82716a750cb..56534eac3f577d7e561179677c673754d6be2e2c 100644 (file)
@@ -358,22 +358,20 @@ LeaseMgr::getDBVersion() {
 
 Lease4Collection
 LeaseMgr::getLeases4ByRelayId(const OptionBuffer& /* relay_id */,
-                              const IOAddress& /* link_addr */,
                               const IOAddress& /* lower_bound_address */,
                               const LeasePageSize& /* page_size */,
                               const time_t& /* qry_start_time = 0 */,
                               const time_t& /* qry_end_time = 0 */) {
-    isc_throw(NotImplemented, __FILE__ << ":" << __LINE__ << " - " << __FUNCTION__);
+    isc_throw(NotImplemented, "LeaseMgr::getLeases4ByRelayId not implemented");
 }
 
 Lease4Collection
 LeaseMgr::getLeases4ByRemoteId(const OptionBuffer& /* remote_id */,
-                               const IOAddress& /* link_addr */,
                                const IOAddress& /* lower_bound_address */,
                                const LeasePageSize& /* page_size */,
                                const time_t& /* qry_start_time = 0 */,
                                const time_t& /* qry_end_time = 0 */) {
-    isc_throw(NotImplemented, __FILE__ << ":" << __LINE__ << " - " << __FUNCTION__);
+    isc_throw(NotImplemented, "LeaseMgr::getLeases4ByRemoteId not implemented");
 }
 
 Lease6Collection
@@ -381,7 +379,7 @@ LeaseMgr::getLeases6ByRelayId(const DUID& /* relay_id */,
                               const IOAddress& /* link_addr */,
                               const IOAddress& /* lower_bound_address */,
                               const LeasePageSize& /* page_size */) {
-    isc_throw(NotImplemented, __FILE__ << ":" << __LINE__ << " - " << __FUNCTION__);
+    isc_throw(NotImplemented, "LeaseMgr::getLeases6ByRelayId not implemented");
 }
 
 Lease6Collection
@@ -389,14 +387,14 @@ LeaseMgr::getLeases6ByRemoteId(const OptionBuffer& /* remote_id */,
                                const IOAddress& /* link_addr */,
                                const IOAddress& /* lower_bound_address */,
                                const LeasePageSize& /* page_size*/) {
-    isc_throw(NotImplemented, __FILE__ << ":" << __LINE__ << " - " << __FUNCTION__);
+    isc_throw(NotImplemented, "LeaseMgr::getLeases6ByRemoteId not implemented");
 }
 
 Lease6Collection
 LeaseMgr::getLeases6ByLink(const IOAddress& /* link_addr */,
                            const IOAddress& /* lower_bound_address */,
                            const LeasePageSize& /* page_size */) {
-    isc_throw(NotImplemented, __FILE__ << ":" << __LINE__ << " - " << __FUNCTION__);
+    isc_throw(NotImplemented, "LeaseMgr::getLeases6ByLink not implemented");
 }
 
 } // namespace isc::dhcp
index bc1b1d57b7dfc1e5893a65f1b3de35510180b618..8a7eea772934d357478b8d9ff5ca01676653adff 100644 (file)
@@ -819,8 +819,7 @@ public:
 
     /// @brief Returns existing IPv4 leases with a given relay-id
     ///
-    /// @param relay_id DUID for relay_id of interest
-    /// @param link_addr limit results to leases on this link when not ::
+    /// @param relay_id  RAI Relay-ID sub-option value for relay_id of interest
     /// @param lower_bound_address IPv4 address used as lower bound for the
     /// returned range.
     /// @param page_size maximum size of the page returned.
@@ -831,7 +830,6 @@ public:
     ///
     /// @return collection of IPv4 leases
     virtual Lease4Collection getLeases4ByRelayId(const OptionBuffer& relay_id,
-                                                 const asiolink::IOAddress& link_addr,
                                                  const asiolink::IOAddress& lower_bound_address,
                                                  const LeasePageSize& page_size,
                                                  const time_t& qry_start_time = 0,
@@ -839,8 +837,7 @@ public:
 
     /// @brief Returns existing IPv4 leases with a given remote-id
     ///
-    /// @param remote_id remote-id option data of interest
-    /// @param link_addr limit results to leases on this link when not ::
+    /// @param remote_id  RAI Remote-ID sub-option value for remote-id of interest
     /// @param lower_bound_address IPv4 address used as lower bound for the
     /// returned range.
     /// @param page_size maximum size of the page returned.
@@ -851,7 +848,6 @@ public:
     ///
     /// @return collection of IPv4 leases
     virtual Lease4Collection getLeases4ByRemoteId(const OptionBuffer& remote_id,
-                                                  const asiolink::IOAddress& link_addr,
                                                   const asiolink::IOAddress& lower_bound_address,
                                                   const LeasePageSize& page_size,
                                                   const time_t& qry_start_time = 0,