lib/pio/open_flow10/set_source_mac_address.rb
# frozen_string_literal: true
require 'pio/open_flow/action'
require 'pio/type/mac_address'
module Pio
module OpenFlow10
# An action to modify the source Ethernet address of a packet.
class SetSourceMacAddress < OpenFlow::Action
action_header action_type: 4, action_length: 16
mac_address :mac_address
string :padding, length: 6
hide :padding
def initialize(mac_address)
super mac_address: mac_address
end
end
end
end