dhcpkit.ipv6.server.extensions.prefix_delegation module

Server extension to handle prefix delegation options properly

class dhcpkit.ipv6.server.extensions.prefix_delegation.UnansweredIAPDOptionHandler(authoritative: bool = True)[source]

Bases: dhcpkit.ipv6.server.handlers.Handler

A handler that answers to all unanswered IAPDOptions

Parameters:authoritative – Whether this handler is authorised to tell clients to stop using prefixes
handle(bundle: dhcpkit.ipv6.server.transaction_bundle.TransactionBundle)[source]

Make sure that every IAPDOption is answered.

Parameters:bundle – The transaction bundle
dhcpkit.ipv6.server.extensions.prefix_delegation.create_cleanup_handlers() → List[source]

Create handlers to clean up stuff in the transaction bundle

Returns:Handlers to add to the handler chain