class PushMplsHeaderAction
Class used to define an OpenFlow action to add MPLS header to packet.
Public Class Methods
new(order: 0, eth_type: nil)
click to toggle source
Parameters
order
-
integer : The order of the action relative to other actions in Instruction.
eth_type
-
integer : The ethernet type of the packet.
Calls superclass method
Action.new
# File lib/openflowdev/actions/push_mpls_header_action.rb, line 37 def initialize(order: 0, eth_type: nil) super(order: order) raise ArgumentError, "Ethernet Type (eth_type) required" @eth_type = eth_type end