dhcpkit.ipv6.server.handlers.basic_relay module

Basic handlers for relay options

class dhcpkit.ipv6.server.handlers.basic_relay.CopyRelayOptionHandler(option_class: type)[source]

Bases: dhcpkit.ipv6.server.handlers.RelayHandler

This handler just copies a type of option from the incoming relay messages to the outgoing relay messages

Parameters:option_class – The option class to copy
handle_relay(bundle: dhcpkit.ipv6.server.transaction_bundle.TransactionBundle, relay_message_in: dhcpkit.ipv6.messages.RelayForwardMessage, relay_message_out: dhcpkit.ipv6.messages.RelayReplyMessage)[source]

Copy the options for each relay message pair.

  • bundle – The transaction bundle
  • relay_message_in – The incoming relay message
  • relay_message_out – Thr outgoing relay message
option_class = None

The class of the option from the RelayForwardMessage to the RelayReplyMessage