mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 05:27:55 +00:00
Applying suggested changes
This commit is contained in:
parent
bc894f9cbe
commit
13fae7730d
@ -224,14 +224,13 @@ public:
|
||||
|
||||
/// @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) {
|
||||
offer_lft_ = offer_lft;
|
||||
}
|
||||
|
||||
/// @brief Returns offer lifetime for the class.
|
||||
///
|
||||
/// @param inheritance inheritance mode to be used.
|
||||
/// @return offer lifetime value
|
||||
util::Optional<uint32_t> getOfferLft() const {
|
||||
return (offer_lft_);
|
||||
|
@ -1312,7 +1312,7 @@ public:
|
||||
|
||||
/// @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) {
|
||||
offer_lft_ = offer_lft;
|
||||
}
|
||||
|
@ -5782,7 +5782,7 @@ TEST_F(AllocEngine4Test, discoverOfferLftReuseExpiredLease4) {
|
||||
|
||||
// Verifies that AllocEngine::getOfferLft(ctx4) returns the appropriate
|
||||
// lifetime value based on the context content.
|
||||
TEST_F(AllocEngine4Test, getOfferft4) {
|
||||
TEST_F(AllocEngine4Test, getOfferLft4) {
|
||||
AllocEngine engine(0);
|
||||
|
||||
// Let's make three classes, two with offer-lifetime and one without,
|
||||
|
@ -426,7 +426,7 @@ public:
|
||||
// position of the data element which caused failure.
|
||||
if (rcode_ != 0) {
|
||||
EXPECT_TRUE(errorContainsPosition(status, "<string>"))
|
||||
<< "error text:" << error_text_;
|
||||
<< "error text: " << error_text_;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/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
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
|
Loading…
x
Reference in New Issue
Block a user