class PopMplsHeaderAction

Class that defines an OpenFlow Pop MPLS action ( remove the tunnel encapsulation )

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/pop_mpls_header_action.rb, line 37
def initialize(order: 0, eth_type: nil)
  super(order: order)
  raise ArgumentError, 'Ethernet Type (eth_type) required' unless eth_type
  @eth_type = eth_type
end