dhcpkit_kafka.server_extension.config module

Configuration elements for the SOL_MAX_RT option handlers

class dhcpkit_kafka.server_extension.config.KafkaHandlerFactory(section: ZConfig.matcher.SectionValue)[source]

Bases: dhcpkit.ipv6.server.handlers.HandlerFactory

Create the handler for the Kafka producer.

create() → dhcpkit_kafka.server_extension.KafkaHandler[source]

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

Returns:A handler object
dhcpkit_kafka.server_extension.config.topic_name(value: str) → str[source]

Data validation for Kafka topic names.

Parameters:value – The value from the configuration file
Returns:The validated value