class PushVlanHeaderAction

Class to define an OpenFlow action to add a VLAN encapsulation.

Public Class Methods

new(order: 0, eth_type: nil, tag: nil, pcp: nil, cfi: nil, vlan_id: 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.

  • tag

    integer : Tag protocol identifier.

  • pcp

    integer : Priority code point.

  • cfi

    integer : Drop eligible indicator (formerly cannonical format indicator).

  • vlan_id

    integer : VLAN identifier.

Calls superclass method Action.new
# File lib/openflowdev/actions/push_vlan_header_action.rb, line 42
def initialize(order: 0, eth_type: nil, tag: nil, pcp: nil, cfi: nil,
    vlan_id: nil)
  super(order: order)
  @eth_type = eth_type
  @tag = tag
  @pcp = pcp
  @cfi = cfi
  @vlan_id = vlan_id
end