dhcpkit.ipv6.server.extensions.leasequery.config module

Config processing for a handler to echo a LinkLayerIdOption back to the relay

class dhcpkit.ipv6.server.extensions.leasequery.config.LeasequeryHandlerFactory(section)[source]

Bases: dhcpkit.ipv6.server.handlers.HandlerFactory

Config processing for a handler to echo a LinkLayerIdOption back to the relay

create()[source]

Create a leasequery handler.

Returns:A leasequery handler
class dhcpkit.ipv6.server.extensions.leasequery.config.LeasequerySqliteStoreFactory(section)[source]

Bases: dhcpkit.common.server.config_elements.ConfigElementFactory

Factory for LeasequerySqliteStore

create()[source]

Create a leasequery store.

Returns:A leasequery store
static name_datatype(v)
dhcpkit.ipv6.server.extensions.leasequery.config.sensitive_option_name(value: str) → int[source]

If the argument is a number then check if it is a 16-bit unsigned integer and return it. Otherwise see if we have an option implementation with the given name, and return its option-type code.

Parameters:value – The name or number of a DHCPv6 option
Returns:The number of the option