mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
Applying suggested changes
This commit is contained in:
committed by
Thomas Markwalder
parent
bc894f9cbe
commit
13fae7730d
@@ -224,14 +224,13 @@ public:
|
|||||||
|
|
||||||
/// @brief Sets offer lifetime for the class.
|
/// @brief Sets offer lifetime for the class.
|
||||||
///
|
///
|
||||||
/// Will be used for the offer lifetime (may be empty if not defined)
|
/// @param offer_lft the offer lifetime assigned to the class (may be empty if not defined)
|
||||||
void setOfferLft(const util::Optional<uint32_t>& offer_lft) {
|
void setOfferLft(const util::Optional<uint32_t>& offer_lft) {
|
||||||
offer_lft_ = offer_lft;
|
offer_lft_ = offer_lft;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Returns offer lifetime for the class.
|
/// @brief Returns offer lifetime for the class.
|
||||||
///
|
///
|
||||||
/// @param inheritance inheritance mode to be used.
|
|
||||||
/// @return offer lifetime value
|
/// @return offer lifetime value
|
||||||
util::Optional<uint32_t> getOfferLft() const {
|
util::Optional<uint32_t> getOfferLft() const {
|
||||||
return (offer_lft_);
|
return (offer_lft_);
|
||||||
|
@@ -1312,7 +1312,7 @@ public:
|
|||||||
|
|
||||||
/// @brief Sets offer lifetime for the network.
|
/// @brief Sets offer lifetime for the network.
|
||||||
///
|
///
|
||||||
/// Will be used for the offer lifetime (may be empty if not defined)
|
/// @param offer_lft the offer lifetime assigned to the class (may be empty if not defined)
|
||||||
void setOfferLft(const util::Optional<uint32_t>& offer_lft) {
|
void setOfferLft(const util::Optional<uint32_t>& offer_lft) {
|
||||||
offer_lft_ = offer_lft;
|
offer_lft_ = offer_lft;
|
||||||
}
|
}
|
||||||
|
@@ -5782,7 +5782,7 @@ TEST_F(AllocEngine4Test, discoverOfferLftReuseExpiredLease4) {
|
|||||||
|
|
||||||
// Verifies that AllocEngine::getOfferLft(ctx4) returns the appropriate
|
// Verifies that AllocEngine::getOfferLft(ctx4) returns the appropriate
|
||||||
// lifetime value based on the context content.
|
// lifetime value based on the context content.
|
||||||
TEST_F(AllocEngine4Test, getOfferft4) {
|
TEST_F(AllocEngine4Test, getOfferLft4) {
|
||||||
AllocEngine engine(0);
|
AllocEngine engine(0);
|
||||||
|
|
||||||
// Let's make three classes, two with offer-lifetime and one without,
|
// Let's make three classes, two with offer-lifetime and one without,
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (C) 2022-2023 Internet Systems Consortium, Inc. ("ISC")
|
# Copyright (C) 2023 Internet Systems Consortium, Inc. ("ISC")
|
||||||
#
|
#
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# 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
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
Reference in New Issue
Block a user