Kea 3.1.9
isc::lease_cmds::SflqCmds Class Reference

Wrapper class around SFLQ pool commands. More...

#include <sflq_cmds.h>

Public Member Functions

 SflqCmds ()
 Constructor.
int sflqPool4DelHandler (hooks::CalloutHandle &handle)
 Delete the SFLQ V4 pool that matches a start and end address.
int sflqPool4GetAllHandler (hooks::CalloutHandle &handle)
 The 'sflq-pool4-get-all' command handler.
int sflqPool4GetByRangeHandler (hooks::CalloutHandle &handle)
 Handles a 'sflq-pool4-by-range' command.
int sflqPool4GetBySubnetHandler (hooks::CalloutHandle &handle)
 The 'sflq-pool4-get-by-subnet' command handler.
int sflqPool4RebuildHandler (hooks::CalloutHandle &handle)
 sflq-pool4-rebuild handler.
int sflqPool6DelHandler (hooks::CalloutHandle &handle)
 Delete the SFLQ V6 pool that matches a start and end address.
int sflqPool6GetAllHandler (hooks::CalloutHandle &handle)
 The 'sflq-pool6-get-all' command handler.
int sflqPool6GetByRangeHandler (hooks::CalloutHandle &handle)
 Handles a 'sflq-pool6-by-range' command.
int sflqPool6GetBySubnetHandler (hooks::CalloutHandle &handle)
 The 'sflq-pool6-get-by-subnet' command handler.
int sflqPool6RebuildHandler (hooks::CalloutHandle &handle)
 The 'sflq-pool6-rebuild' command handler.

Detailed Description

Wrapper class around SFLQ pool commands.

This provides the interface through which callouts execute the commands.

Definition at line 375 of file sflq_cmds.h.

Constructor & Destructor Documentation

◆ SflqCmds()

isc::lease_cmds::SflqCmds::SflqCmds ( )

Constructor.

It creates an instance of the SflqCmds

Definition at line 488 of file sflq_cmds.cc.

Member Function Documentation

◆ sflqPool4DelHandler()

int isc::lease_cmds::SflqCmds::sflqPool4DelHandler ( hooks::CalloutHandle & handle)

Delete the SFLQ V4 pool that matches a start and end address.

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool4-del", "arguments": { "start-address": "192.0.2.0", "end-address": "192.0.2.255", "force": false } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 513 of file sflq_cmds.cc.

Referenced by sflq_pool4_del().

◆ sflqPool4GetAllHandler()

int isc::lease_cmds::SflqCmds::sflqPool4GetAllHandler ( hooks::CalloutHandle & handle)

The 'sflq-pool4-get-all' command handler.

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool4-get-all", "arguments": { } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 498 of file sflq_cmds.cc.

Referenced by sflq_pool4_get_all().

◆ sflqPool4GetByRangeHandler()

int isc::lease_cmds::SflqCmds::sflqPool4GetByRangeHandler ( hooks::CalloutHandle & handle)

Handles a 'sflq-pool4-by-range' command.

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool4-get-by-range", "arguments": { "start-address": "192.0.2.0", "end-address": "192.0.2.255" } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 508 of file sflq_cmds.cc.

Referenced by sflq_pool4_get_by_range().

◆ sflqPool4GetBySubnetHandler()

int isc::lease_cmds::SflqCmds::sflqPool4GetBySubnetHandler ( hooks::CalloutHandle & handle)

The 'sflq-pool4-get-by-subnet' command handler.

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool4-get-by-subnet", "arguments": { "subnet-id" : 100 } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 503 of file sflq_cmds.cc.

Referenced by sflq_pool4_get_by_subnet().

◆ sflqPool4RebuildHandler()

int isc::lease_cmds::SflqCmds::sflqPool4RebuildHandler ( hooks::CalloutHandle & handle)

sflq-pool4-rebuild handler.

Invokes LeaseMgr::sflqCreateFlqPool4() after parsing the arguments.

lease6-resend-ddns command handler

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool4-rebuild", "arguments": { "start-address": "192.0.2.0", "end-address": "192.0.2.255" } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 493 of file sflq_cmds.cc.

Referenced by sflq_pool4_rebuild().

◆ sflqPool6DelHandler()

int isc::lease_cmds::SflqCmds::sflqPool6DelHandler ( hooks::CalloutHandle & handle)

Delete the SFLQ V6 pool that matches a start and end address.

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool6-del", "arguments": { "start-address": "3001::", "end-address": "3001::FFFF", "force": false } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 538 of file sflq_cmds.cc.

Referenced by sflq_pool6_del().

◆ sflqPool6GetAllHandler()

int isc::lease_cmds::SflqCmds::sflqPool6GetAllHandler ( hooks::CalloutHandle & handle)

The 'sflq-pool6-get-all' command handler.

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool6-get-all", "arguments": { } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 523 of file sflq_cmds.cc.

Referenced by sflq_pool6_get_all().

◆ sflqPool6GetByRangeHandler()

int isc::lease_cmds::SflqCmds::sflqPool6GetByRangeHandler ( hooks::CalloutHandle & handle)

Handles a 'sflq-pool6-by-range' command.

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool6-get-by-range", "arguments": { "start-address": "3001::", "end-address": "3001::FFFF" } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 533 of file sflq_cmds.cc.

Referenced by sflq_pool6_get_by_range().

◆ sflqPool6GetBySubnetHandler()

int isc::lease_cmds::SflqCmds::sflqPool6GetBySubnetHandler ( hooks::CalloutHandle & handle)

The 'sflq-pool6-get-by-subnet' command handler.

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool6-get-by-subnet", "arguments": { "subnet-id" : 100 } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 528 of file sflq_cmds.cc.

Referenced by sflq_pool6_get_by_subnet().

◆ sflqPool6RebuildHandler()

int isc::lease_cmds::SflqCmds::sflqPool6RebuildHandler ( hooks::CalloutHandle & handle)

The 'sflq-pool6-rebuild' command handler.

It extracts the command name and arguments from the given CalloutHandle, attempts to process them, and then set's the handle's "response" argument accordingly.

An example command with all supported arguments is shown below: { "command": "sflq-pool6-rebuild", "arguments": { "start-address": "3001::", "end-address": "3001::FF" } }

Parameters
handleCallout context - which is expected to contain the the command JSON text in the "command" argument
Returns
result of the operation

Definition at line 518 of file sflq_cmds.cc.

Referenced by sflq_pool6_rebuild().


The documentation for this class was generated from the following files: