dhcpkit.ipv6.server.handlers.rapid_commit module

Handler that implements rapid-commit on the server.

class dhcpkit.ipv6.server.handlers.rapid_commit.RapidCommitHandler(rapid_commit_rejections: bool)[source]

Bases: dhcpkit.ipv6.server.handlers.Handler

Upgrade AdvertiseMessage to ReplyMessage when client asks for rapid-commit

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

Don’t do anything, all the processing happens in post().

Parameters:bundle – The transaction bundle
post(bundle: dhcpkit.ipv6.server.transaction_bundle.TransactionBundle)[source]

Upgrade the response from a AdvertiseMessage to a ReplyMessage if appropriate :param bundle: The transaction bundle

rapid_commit_rejections = None

Do rapid-commit when an IA_NA, IA_TA or IA_PD request gets refused. We have seen at lease one vice (Fritz!Box) that gets confused when a rapid-commit message tells it there are no addresses available. Turning this setting off works around that problem by not doing a rapid-commit when something gets refused.