![]() |
Kea 3.1.9
|
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. | |
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.
| isc::lease_cmds::SflqCmds::SflqCmds | ( | ) |
| 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 } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 513 of file sflq_cmds.cc.
Referenced by sflq_pool4_del().
| 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": { } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 498 of file sflq_cmds.cc.
Referenced by sflq_pool4_get_all().
| 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" } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 508 of file sflq_cmds.cc.
Referenced by sflq_pool4_get_by_range().
| 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 } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 503 of file sflq_cmds.cc.
Referenced by sflq_pool4_get_by_subnet().
| 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" } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 493 of file sflq_cmds.cc.
Referenced by sflq_pool4_rebuild().
| 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 } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 538 of file sflq_cmds.cc.
Referenced by sflq_pool6_del().
| 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": { } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 523 of file sflq_cmds.cc.
Referenced by sflq_pool6_get_all().
| 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" } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 533 of file sflq_cmds.cc.
Referenced by sflq_pool6_get_by_range().
| 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 } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 528 of file sflq_cmds.cc.
Referenced by sflq_pool6_get_by_subnet().
| 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" } }
| handle | Callout context - which is expected to contain the the command JSON text in the "command" argument |
Definition at line 518 of file sflq_cmds.cc.
Referenced by sflq_pool6_rebuild().