diff options
author | Thomas Markwalder <tmark@isc.org> | 2023-02-08 15:41:57 +0100 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2023-02-10 19:59:00 +0100 |
commit | 7c41640ad923e69fa0bab7d3c952704f7e132e7f (patch) | |
tree | 5084bb4cd69bf21e0135bcb619a89fdc18455244 /src/lib/dhcpsrv/network.h | |
parent | [#2702] remove link dependencies to fix ODR (diff) | |
download | kea-7c41640ad923e69fa0bab7d3c952704f7e132e7f.tar.xz kea-7c41640ad923e69fa0bab7d3c952704f7e132e7f.zip |
[#2677] Ignore invalid renew-timer values
src/lib/dhcpsrv/dhcpsrv_messages.*
DHCPSRV_CFGMGR_RENEW_GTR_REBIND - new message
src/lib/dhcpsrv/network.h
Added Network::getLabel()
src/lib/dhcpsrv/parsers/base_network_parser.cc
BaseNetworkParser::parseCommon() - log renew > rebind
rather than throw
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
Subnet4ConfigParser::initSubnet() - removed duplicate timer check
Subnet6ConfigParser::initSubnet() - removed duplicate timer check
src/lib/dhcpsrv/shared_network.h
Added SharedNetwork4::getLabel()
Added SharedNetwork6::getLabel()
src/lib/dhcpsrv/subnet.h
Added Subnet::getLabel()
src/lib/dhcpsrv/tests/cfg_subnets4_unittest.cc
TEST_F(Subnet4ParserTest, parseWithInvalidRenewRebind) - new test
src/lib/dhcpsrv/tests/cfg_subnets6_unittest.cc
TEST_F(Subnet4ParserTest, parseWithInvalidRenewRebind) - new test
src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc
Updated tests
Diffstat (limited to 'src/lib/dhcpsrv/network.h')
-rw-r--r-- | src/lib/dhcpsrv/network.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/network.h b/src/lib/dhcpsrv/network.h index c61720fa95..e5e0b90ca8 100644 --- a/src/lib/dhcpsrv/network.h +++ b/src/lib/dhcpsrv/network.h @@ -806,6 +806,13 @@ public: /// @return A pointer to unparsed network configuration. virtual data::ElementPtr toElement() const; + /// @brief Generates an identifying label for logging. + /// + /// @return string containing the label + virtual std::string getLabel() const { + return ("base-network"); + } + protected: /// @brief Gets the optional callback function used to fetch globally |