class SetVlanPCPAction
Class used to define OpenFlow action to set the PCP field in VLAN header
Public Class Methods
new(order: nil, vlan_pcp: nil)
click to toggle source
Parameters
order
-
integer : The order of the action relative to other actions in Instruction.
vlan_pcp
-
integer : The valoue to set in the PCP field in VLAN header.
Calls superclass method
Action.new
# File lib/openflowdev/actions/set_vlan_pcp_action.rb, line 37 def initialize(order: nil, vlan_pcp: nil) super(order: order) raise ArgumentError, "VLAN PCP (vlan_pcp) required" unless vlan_pcp @vlan_pcp = vlan_pcp end