Source code for dhcpkit.ipv6.server.extensions.sntp.config

"""
Configuration elements for the dns option handlers
"""
from dhcpkit.ipv6.server.extensions.sntp import SNTPServersOptionHandler
from dhcpkit.ipv6.server.handlers import HandlerFactory


[docs]class SNTPServersOptionHandlerFactory(HandlerFactory): """ Create the handler for SNTP servers. """
[docs] def create(self) -> SNTPServersOptionHandler: """ Create a handler of this class based on the configuration in the config section. :return: A handler object """ return SNTPServersOptionHandler(self.addresses, always_send=self.always_send)