class OutputAction
Class to define an OpenFlow output action
Public Class Methods
new(order: 0, port: nil, max_length: nil)
click to toggle source
Parameters
order
-
integer : The order of the action relative to other actions in Instruction.
port
-
integer : the port to target for output
max_length
-
integer : When the ’port’ is the controller, this indicates the max number of
bytes to send. A value of zero means no bytes of the packet should be sent. A value of OFPCML_NO_BUFFER (0xffff) means that the packet is not buffered and the complete packet is to be sent to the controller.
Calls superclass method
Action.new
# File lib/openflowdev/actions/output_action.rb, line 41 def initialize(order: 0, port: nil, max_length: nil) super(order: order) raise ArgumentError, "Port (port) required" unless port @port = port @max_length = max_length end