dhcpkit.ipv6.server.handlers.status_option module

Some messages need a status code in the response. These handlers insert that status code if no other handler did.

class dhcpkit.ipv6.server.handlers.status_option.AddMissingStatusOptionHandler[source]

Bases: dhcpkit.ipv6.server.handlers.Handler

The handler that makes sure that replies to confirm messages have a status code. When we reach the end without any status code being set we assume success. Other option handlers set the status to something else if they cannot confirm their part.

handle(bundle: dhcpkit.ipv6.server.transaction_bundle.TransactionBundle)[source]

Update the status of the reply to ConfirmMessage, ReleaseMessage and DeclineMessage.

Parameters:bundle – The transaction bundle