354 bool default_value =
false);
581 boost::shared_ptr<SflqCmdsImpl> sflq_impl_;
The IOAddress class represents an IP addresses (version agnostic).
Base class that command handler implementers may use for common tasks.
Per-packet callout handle.
int sflqPool6DelHandler(hooks::CalloutHandle &handle)
Delete the SFLQ V6 pool that matches a start and end address.
static bool extractBool(data::ConstElementPtr ¶ms, const std::string &name, bool default_value=false)
Extracts a boolean from given parameters map.
virtual ~SflqCmdsImpl()
Destructor.
static dhcp::Lease::Type extractLeaseType(data::ConstElementPtr ¶ms, uint16_t family)
Extracts 'lease-type' from given parameters map.
SflqCmdsImpl()
Constructor.
static data::ConstElementPtr buildGetResponse(dhcp::SflqPoolInfoCollectionPtr pools)
Creates a success response from a list of SqlPoolInfos.
int sflqPool6RebuildHandler(hooks::CalloutHandle &handle)
The 'sflq-pool6-rebuild' command handler.
int sflqPool6GetBySubnetHandler(hooks::CalloutHandle &handle)
The 'sflq-pool6-by-subnet' command handler.
static void extractRange(data::ConstElementPtr ¶ms, uint8_t family, asiolink::IOAddress &start_address, asiolink::IOAddress &end_address)
Extracts an ip address range from given parameters map.
int sflqPool4GetByRangeHandler(hooks::CalloutHandle &handle)
Handles a 'sflq-pool4-by-range' command.
int sflqPool4GetAllHandler(hooks::CalloutHandle &handle)
The 'sflq-pool4-get-all' command handler.
int sflqPool4RebuildHandler(hooks::CalloutHandle &handle)
The 'sflq-pool4-rebuild' command handler.
int sflqPool4GetBySubnetHandler(hooks::CalloutHandle &handle)
The 'sflq-pool4-by-subnet' command handler.
int sflqPool6GetByRangeHandler(hooks::CalloutHandle &handle)
Handles a 'sflq-pool6-by-range' command.
int sflqPool6GetAllHandler(hooks::CalloutHandle &handle)
The 'sflq-pool6-get-all' command handler.
int sflqPool4DelHandler(hooks::CalloutHandle &handle)
Delete the SFLQ V4 pool that matches a start and end address.
int sflqPool4DelHandler(hooks::CalloutHandle &handle)
Delete the SFLQ V4 pool that matches a start and end address.
int sflqPool4GetBySubnetHandler(hooks::CalloutHandle &handle)
The 'sflq-pool4-get-by-subnet' command handler.
int sflqPool6RebuildHandler(hooks::CalloutHandle &handle)
The 'sflq-pool6-rebuild' command handler.
int sflqPool6GetAllHandler(hooks::CalloutHandle &handle)
The 'sflq-pool6-get-all' command handler.
int sflqPool4GetByRangeHandler(hooks::CalloutHandle &handle)
Handles a 'sflq-pool4-by-range' command.
int sflqPool4GetAllHandler(hooks::CalloutHandle &handle)
The 'sflq-pool4-get-all' command handler.
int sflqPool6GetByRangeHandler(hooks::CalloutHandle &handle)
Handles a 'sflq-pool6-by-range' command.
int sflqPool6DelHandler(hooks::CalloutHandle &handle)
Delete the SFLQ V6 pool that matches a start and end address.
int sflqPool6GetBySubnetHandler(hooks::CalloutHandle &handle)
The 'sflq-pool6-get-by-subnet' command handler.
int sflqPool4RebuildHandler(hooks::CalloutHandle &handle)
sflq-pool4-rebuild handler.
An abstract API for lease database.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< SflqPoolInfoCollection > SflqPoolInfoCollectionPtr
Defines the logger used by the top-level component of kea-lfc.
Type
Type of lease or pool.