![]() |
Kea 3.0.0
|
Parameters specified for reservation-get and reservation-del. More...
Public Member Functions | |
Parameters () | |
Default constructor. |
Public Attributes | |
IOAddress | addr |
Specifies IPv4 or IPv6 address (used when query_by_addr is true) | |
bool | has_subnet_id |
Specifies if subnet-id is present. | |
uint64_t | host_id |
Specifies host identifier (default 0). | |
std::string | hostname |
Specifies host name (default ""). | |
std::vector< uint8_t > | ident |
Specifies identifier value (used when query_by_addr is false) | |
HostMgrOperationTarget | operation_target |
Specifies the target host source (default UNSPECIFIED_SOURCE which means the default host source is command-related). | |
size_t | page_limit |
Specifies page limit (no default). | |
bool | query_by_addr |
Specifies parameter types (true = query by address, false = query by identifier-type,identifier) | |
size_t | source_index |
Specifies source index (default 0). | |
SubnetID | subnet_id |
Specifies subnet-id. | |
Host::IdentifierType | type |
Specifies identifier type (usually FLEX_ID, used when query_by_addr is false) |
Parameters specified for reservation-get and reservation-del.
As both call types (get and delete) need specify which reservation to act on, they have the same set of parameters. In particular, those two call types support the following sets of parameters:
This class stores those parameters and is used to pass them around.
Definition at line 60 of file host_cmds.cc.
|
inline |
Default constructor.
Definition at line 100 of file host_cmds.cc.
References addr, has_subnet_id, host_id, operation_target, page_limit, query_by_addr, source_index, subnet_id, type, and isc::dhcp::UNSPECIFIED_SOURCE.
IOAddress isc::host_cmds::HostCmdsImpl::Parameters::addr |
Specifies IPv4 or IPv6 address (used when query_by_addr is true)
Definition at line 70 of file host_cmds.cc.
Referenced by Parameters(), isc::host_cmds::HostCmdsImpl::reservationDelHandler(), isc::host_cmds::HostCmdsImpl::reservationGetByAddressHandler(), and isc::host_cmds::HostCmdsImpl::reservationGetHandler().
bool isc::host_cmds::HostCmdsImpl::Parameters::has_subnet_id |
Specifies if subnet-id is present.
Definition at line 67 of file host_cmds.cc.
Referenced by Parameters(), isc::host_cmds::HostCmdsImpl::reservationGetByAddressHandler(), isc::host_cmds::HostCmdsImpl::reservationGetByHostnameHandler(), and isc::host_cmds::HostCmdsImpl::reservationGetPageHandler().
uint64_t isc::host_cmds::HostCmdsImpl::Parameters::host_id |
Specifies host identifier (default 0).
Definition at line 90 of file host_cmds.cc.
Referenced by Parameters(), and isc::host_cmds::HostCmdsImpl::reservationGetPageHandler().
std::string isc::host_cmds::HostCmdsImpl::Parameters::hostname |
Specifies host name (default "").
Definition at line 93 of file host_cmds.cc.
Referenced by isc::host_cmds::HostCmdsImpl::reservationGetByHostnameHandler().
std::vector<uint8_t> isc::host_cmds::HostCmdsImpl::Parameters::ident |
Specifies identifier value (used when query_by_addr is false)
Definition at line 77 of file host_cmds.cc.
Referenced by isc::host_cmds::HostCmdsImpl::reservationDelHandler(), isc::host_cmds::HostCmdsImpl::reservationGetByIdHandler(), and isc::host_cmds::HostCmdsImpl::reservationGetHandler().
HostMgrOperationTarget isc::host_cmds::HostCmdsImpl::Parameters::operation_target |
Specifies the target host source (default UNSPECIFIED_SOURCE which means the default host source is command-related).
Definition at line 97 of file host_cmds.cc.
Referenced by Parameters(), isc::host_cmds::HostCmdsImpl::reservationDelHandler(), isc::host_cmds::HostCmdsImpl::reservationGetAllHandler(), isc::host_cmds::HostCmdsImpl::reservationGetByAddressHandler(), isc::host_cmds::HostCmdsImpl::reservationGetByHostnameHandler(), isc::host_cmds::HostCmdsImpl::reservationGetByIdHandler(), and isc::host_cmds::HostCmdsImpl::reservationGetHandler().
size_t isc::host_cmds::HostCmdsImpl::Parameters::page_limit |
Specifies page limit (no default).
Definition at line 84 of file host_cmds.cc.
Referenced by Parameters(), and isc::host_cmds::HostCmdsImpl::reservationGetPageHandler().
bool isc::host_cmds::HostCmdsImpl::Parameters::query_by_addr |
Specifies parameter types (true = query by address, false = query by identifier-type,identifier)
Definition at line 81 of file host_cmds.cc.
Referenced by Parameters(), isc::host_cmds::HostCmdsImpl::reservationDelHandler(), and isc::host_cmds::HostCmdsImpl::reservationGetHandler().
size_t isc::host_cmds::HostCmdsImpl::Parameters::source_index |
Specifies source index (default 0).
Definition at line 87 of file host_cmds.cc.
Referenced by Parameters(), and isc::host_cmds::HostCmdsImpl::reservationGetPageHandler().
SubnetID isc::host_cmds::HostCmdsImpl::Parameters::subnet_id |
Specifies subnet-id.
Definition at line 64 of file host_cmds.cc.
Referenced by Parameters(), isc::host_cmds::HostCmdsImpl::reservationDelHandler(), isc::host_cmds::HostCmdsImpl::reservationGetAllHandler(), isc::host_cmds::HostCmdsImpl::reservationGetByAddressHandler(), isc::host_cmds::HostCmdsImpl::reservationGetByHostnameHandler(), isc::host_cmds::HostCmdsImpl::reservationGetHandler(), and isc::host_cmds::HostCmdsImpl::reservationGetPageHandler().
Host::IdentifierType isc::host_cmds::HostCmdsImpl::Parameters::type |
Specifies identifier type (usually FLEX_ID, used when query_by_addr is false)
Definition at line 74 of file host_cmds.cc.
Referenced by Parameters(), isc::host_cmds::HostCmdsImpl::reservationDelHandler(), isc::host_cmds::HostCmdsImpl::reservationGetByIdHandler(), and isc::host_cmds::HostCmdsImpl::reservationGetHandler().