class SetDlDstAction
Class to define an OpenFlow action for setting the ethernet (data layer) destination
Public Class Methods
new(order: nil, mac_addr: nil)
click to toggle source
Parameters
order
-
integer : The order of the action relative to other actions in Instruction.
mac_addr
-
string : The MAC address to set in destination field of ethernet header.
Calls superclass method
Action.new
# File lib/openflowdev/actions/set_dl_dst_action.rb, line 37 def initialize(order: nil, mac_addr: nil) super(order: order) raise ArgumentError, "MAC Address (mac_addr) required" @mac = mac_addr end