class SetDlSrcAction

Class to define an OpenFlow action to set the Ethernet (data layer) source MAC address

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 source field of ethernet header.

Calls superclass method Action.new
# File lib/openflowdev/actions/set_dl_src_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