dhcpkit.ipv6.server.extensions.timing_limits.config module

Configuration elements for the IANA/IAPD timing limits.

class dhcpkit.ipv6.server.extensions.timing_limits.config.IANATimingLimitsHandlerFactory(section: ZConfig.matcher.SectionValue)[source]

Bases: dhcpkit.ipv6.server.handlers.HandlerFactory

Create the IANATimingLimitsHandler.

create() → dhcpkit.ipv6.server.extensions.timing_limits.IANATimingLimitsHandler[source]

Create a handler of this class based on the configuration in the config section.

Returns:A handler object
validate_config_section()[source]

Check if all the values are valid in combination

class dhcpkit.ipv6.server.extensions.timing_limits.config.IAPDTimingLimitsHandlerFactory(section: ZConfig.matcher.SectionValue)[source]

Bases: dhcpkit.ipv6.server.handlers.HandlerFactory

Create the IAPDTimingLimitsHandler.

create() → dhcpkit.ipv6.server.extensions.timing_limits.IAPDTimingLimitsHandler[source]

Create a handler of this class based on the configuration in the config section.

Returns:A handler object
validate_config_section()[source]

Check if all the values are valid in combination

dhcpkit.ipv6.server.extensions.timing_limits.config.factor_value(value: str) → Union[source]

Cast the string NONE to the None value, otherwise convert to a float

Parameters:value – The string to parse
Returns:The float value or None
dhcpkit.ipv6.server.extensions.timing_limits.config.time_value(value: str) → int[source]

Cast the string INFINITY to the infinity value, otherwise convert to an integer

Parameters:value – The string to parse
Returns:The integer value