dhcpkit.ipv6.server.handlers.server_id module

Handlers for the basic RFC 3315 options

exception dhcpkit.ipv6.server.handlers.server_id.ForOtherServerError[source]

Bases: dhcpkit.ipv6.server.handlers.CannotRespondError

A specific case of being unable to respond: this message is for another server

class dhcpkit.ipv6.server.handlers.server_id.ServerIdHandler(duid: dhcpkit.ipv6.duids.DUID)[source]

Bases: dhcpkit.ipv6.server.handlers.basic.OverwriteOptionHandler

The handler for ServerIdOption. Checks whether any server-id in the request matches our own and puts our server-id in the response message to let the client know who is answering.

option = None
pre(bundle: dhcpkit.ipv6.server.transaction_bundle.TransactionBundle)[source]

Check if there is a ServerId in the request

Parameters:bundle – The transaction bundle