int
leaseGetHandler(CalloutHandle& handle);
- /// @brief lease4-get-all, lease6-get-all command handler
+ /// @brief lease4-get-all, lease6-get-all commands handler
///
- /// This command attempts to retrieve all IPv4 or IPv6 leases,
+ /// These commands attempt to retrieve all IPv4 or IPv6 leases,
/// or all IPv4 or all IPv6 leases belonging to the particular
/// subnets. If no subnet identifiers are provided, it returns all
/// IPv4 or IPv6 leases from the database.
int
leaseGetHandler(hooks::CalloutHandle& handle);
- /// @brief lease4-get-all, lease6-get-all command handler
+ /// @brief lease4-get-all, lease6-get-all commands handler
///
- /// This command attempts to retrieve all IPv4 or IPv6 leases,
+ /// These commands attempt to retrieve all IPv4 or IPv6 leases,
/// or all IPv4 or all IPv6 leases belonging to the particular
/// subnets. If no subnet identifiers are provided, it returns all
/// IPv4 or IPv6 leases from the database.
lease->preferred_lft_ = 1800;
lease->valid_lft_ = 3600;
lease->cltt_ = 12345678;
- lease->subnet_id_ = subnet_id;;
- lease->fqdn_fwd_ = true;
+ lease->subnet_id_ = subnet_id;
+ lease->fqdn_fwd_ = false;
lease->fqdn_rev_ = true;
lease->hostname_ = "myhost.example.com.";
/// @param subnet_id subnet identifier.
///
/// @return Lease collection (may be empty if no IPv4 lease found).
+ /// @throw NotImplemented because this method is currently not implemented for
+ /// this backend.
virtual Lease4Collection getLeases4(SubnetID subnet_id) const;
/// @brief Returns all IPv4 leases.
///
/// @return Lease collection (may be empty if no IPv4 lease found).
+ /// @throw NotImplemented because this method is currently not implemented for
+ /// this backend.
virtual Lease4Collection getLeases4() const;
/// @brief Returns existing IPv6 lease for a given IPv6 address.
/// @param type specifies lease type: (NA, TA or PD)
///
/// @return Lease collection (may be empty if no IPv6 lease found).
+ /// @throw NotImplemented because this method is currently not implemented for
+ /// this backend.
virtual Lease6Collection getLeases6(SubnetID subnet_id,
Lease::Type type) const;
/// @brief Returns all IPv6 leases.
///
/// @return Lease collection (may be empty if no IPv6 lease found).
+ /// @throw NotImplemented because this method is currently not implemented for
+ /// this backend.
virtual Lease6Collection getLeases6() const;
/// @brief Returns a collection of expired DHCPv6 leases.