class SetTpSrcAction

Class used to define OpenFlow action to set TCP Source Port

Public Class Methods

new(order: nil, port: nil) click to toggle source

Parameters

  • order

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

  • port

    integer : The port number to set for TCP source port.

Calls superclass method Action.new
# File lib/openflowdev/actions/set_tp_src_action.rb, line 37
def initialize(order: nil, port: nil)
  super(order: order)
  raise ArgumentError, "Port (port) required" unless port
  @port = port
end