dhcpkit.ipv6.server.handlers.utils module¶
Utility functions for handlers
-
dhcpkit.ipv6.server.handlers.utils.
force_status
(options: List, new_status_code: dhcpkit.ipv6.options.StatusCodeOption)[source]¶ If there is a StatusCodeOption with a different status code in the options list then replace it. Leave any option with the right status code. Add the given StatusCodeOption if there is none.
Parameters: - options – The list of options to manipulate
- new_status_code – The wanted StatusCodeOption