Kea  1.5.0
isc::lease_cmds::LeaseCmdsImpl::Parameters Class Reference

Parameters specified for lease commands. More...

Public Types

enum  Type { TYPE_ADDR, TYPE_HWADDR, TYPE_DUID, TYPE_CLIENT_ID }
 specifies type of query (by IP addr, by hwaddr, by DUID) More...
 

Public Member Functions

 Parameters ()
 Default constructor. More...
 

Static Public Member Functions

static Type txtToType (const std::string &txt)
 Attempts to covert text to one of specified types. More...
 

Public Attributes

IOAddress addr
 Specifies IPv4/v6 address (used when query_type is TYPE_ADDR) More...
 
isc::dhcp::ClientIdPtr client_id
 Specifies identifier value (used when query_type is TYPE_CLIENT_ID) More...
 
isc::dhcp::DuidPtr duid
 Specifies identifier value (used when query_type is TYPE_DUID) More...
 
HWAddrPtr hwaddr
 Specifies hardware address (used when query_type is TYPE_HWADDR) More...
 
uint32_t iaid
 IAID identifier used for v6 leases. More...
 
Lease::Type lease_type
 Lease type (NA,TA or PD) used for v6 leases. More...
 
Type query_type
 specifies parameter types (true = query by address, false = query by identifier-type,identifier) More...
 
SubnetID subnet_id
 Specifies subnet-id (always used) More...
 

Detailed Description

Parameters specified for lease commands.

Definition at line 47 of file lease_cmds.cc.

Member Enumeration Documentation

◆ Type

specifies type of query (by IP addr, by hwaddr, by DUID)

Enumerator
TYPE_ADDR 

query by IP address (either v4 or v6)

TYPE_HWADDR 

query by hardware address (v4 only)

TYPE_DUID 

query by DUID (v6 only)

TYPE_CLIENT_ID 

query by client identifier (v4 only).

Definition at line 51 of file lease_cmds.cc.

Constructor & Destructor Documentation

◆ Parameters()

isc::lease_cmds::LeaseCmdsImpl::Parameters::Parameters ( )
inline

Default constructor.

Definition at line 107 of file lease_cmds.cc.

Member Function Documentation

◆ txtToType()

static Type isc::lease_cmds::LeaseCmdsImpl::Parameters::txtToType ( const std::string &  txt)
inlinestatic

Attempts to covert text to one of specified types.

Supported values are: "address", hw-address and duid.

Parameters
txttext to be converted
Returns
value converted to Parameters::Type
Exceptions
BadValueif unsupported type is specified

Definition at line 80 of file lease_cmds.cc.

References isc_throw.

Member Data Documentation

◆ addr

IOAddress isc::lease_cmds::LeaseCmdsImpl::Parameters::addr

◆ client_id

isc::dhcp::ClientIdPtr isc::lease_cmds::LeaseCmdsImpl::Parameters::client_id

Specifies identifier value (used when query_type is TYPE_CLIENT_ID)

Definition at line 71 of file lease_cmds.cc.

Referenced by isc::lease_cmds::LeaseCmdsImpl::getParameters(), isc::lease_cmds::LeaseCmdsImpl::lease4DelHandler(), and isc::lease_cmds::LeaseCmdsImpl::leaseGetHandler().

◆ duid

isc::dhcp::DuidPtr isc::lease_cmds::LeaseCmdsImpl::Parameters::duid

Specifies identifier value (used when query_type is TYPE_DUID)

Definition at line 68 of file lease_cmds.cc.

Referenced by isc::lease_cmds::LeaseCmdsImpl::getParameters(), isc::lease_cmds::LeaseCmdsImpl::lease6DelHandler(), and isc::lease_cmds::LeaseCmdsImpl::leaseGetHandler().

◆ hwaddr

HWAddrPtr isc::lease_cmds::LeaseCmdsImpl::Parameters::hwaddr

Specifies hardware address (used when query_type is TYPE_HWADDR)

Definition at line 65 of file lease_cmds.cc.

Referenced by isc::lease_cmds::LeaseCmdsImpl::getParameters(), isc::lease_cmds::LeaseCmdsImpl::lease4DelHandler(), and isc::lease_cmds::LeaseCmdsImpl::leaseGetHandler().

◆ iaid

uint32_t isc::lease_cmds::LeaseCmdsImpl::Parameters::iaid

◆ lease_type

Lease::Type isc::lease_cmds::LeaseCmdsImpl::Parameters::lease_type

◆ query_type

Type isc::lease_cmds::LeaseCmdsImpl::Parameters::query_type

specifies parameter types (true = query by address, false = query by identifier-type,identifier)

Definition at line 98 of file lease_cmds.cc.

Referenced by isc::lease_cmds::LeaseCmdsImpl::getParameters(), isc::lease_cmds::LeaseCmdsImpl::lease4DelHandler(), isc::lease_cmds::LeaseCmdsImpl::lease6DelHandler(), and isc::lease_cmds::LeaseCmdsImpl::leaseGetHandler().

◆ subnet_id

SubnetID isc::lease_cmds::LeaseCmdsImpl::Parameters::subnet_id

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