class SetFieldAction

Class to define OpenFlow action to set a field.

Public Class Methods

new(order: 0, vlan_id: nil, mpls_label: nil) click to toggle source

Parameters

  • order

    integer : The order of the action relative to other actions in Instruction.

  • vlan_id

    integer : VLAN identifier to set.

  • mpls_label

    integer : MPLS label to set.

Calls superclass method Action.new
# File lib/openflowdev/actions/set_field_action.rb, line 38
def initialize(order: 0, vlan_id: nil, mpls_label: nil)
  super(order: order)
  @vlan_id = vlan_id
  @mpls_label = mpls_label
end