![]() |
Kea 3.1.1
|
the configuration manager for address limiting More...
#include <configuration.h>
Public Member Functions | |
const std::string & | key () const override |
Returns the key required to configure the limit in the user context. | |
virtual void | logClientClassLimit (isc::dhcp::ClientClass const &client_class, isc::data::ConstElementPtr const &user_context) override |
Method that checks and logs limit which is to be applied to a client class. | |
virtual void | logSubnetLimit (isc::dhcp::SubnetID const subnet_id, isc::data::ConstElementPtr const &user_context) override |
Method that checks and logs limit which is to be applied to a client class. | |
![]() | |
virtual | ~Configuration ()=default |
Destructor. Declared only to be marked as virtual. | |
void | parse (isc::dhcp::SrvConfigPtr const &config) |
Handles all the parsing of the Kea configuration required for limiting functionality. | |
isc::data::ConstElementPtr const | parseUserContext (isc::data::ConstElementPtr const &user_context) const |
Abstract method that takes a user context from any configuration element and returns the value of the element of interest inside it - most often a limit. | |
the configuration manager for address limiting
Definition at line 136 of file configuration.h.
|
overridevirtual |
Returns the key required to configure the limit in the user context.
Implements isc::limits::Configuration< LeaseLimit >.
Definition at line 72 of file configuration.cc.
|
overridevirtual |
Method that checks and logs limit which is to be applied to a client class.
client_class | |
user_context |
Implements isc::limits::Configuration< LeaseLimit >.
Definition at line 78 of file configuration.cc.
References isc::limits::DBGLVL_TRACE_BASIC, isc::limits::LIMITS_CONFIGURED_ADDRESS_LIMIT_BY_CLIENT_CLASS, isc::limits::limits_logger, and LOG_DEBUG.
|
overridevirtual |
Method that checks and logs limit which is to be applied to a client class.
subnet_id | |
user_context |
Implements isc::limits::Configuration< LeaseLimit >.
Definition at line 93 of file configuration.cc.
References isc::limits::DBGLVL_TRACE_BASIC, isc::limits::LIMITS_CONFIGURED_ADDRESS_LIMIT_BY_SUBNET, isc::limits::limits_logger, and LOG_DEBUG.