Class: Pio::OpenFlow13::SendOutPort

Inherits:
Pio::OpenFlow::Action show all
Defined in:
lib/pio/open_flow13/send_out_port.rb

Overview

Output to switch port.

Constant Summary collapse

NO_BUFFER =
0xffff

Instance Method Summary collapse

Methods inherited from Pio::OpenFlow::Action

action_header, method_missing, read, #to_binary

Constructor Details

#initialize(port) ⇒ SendOutPort

Returns a new instance of SendOutPort.



18
19
20
# File 'lib/pio/open_flow13/send_out_port.rb', line 18

def initialize(port)
  super(port: port)
end

Instance Method Details

#max_lengthObject



22
23
24
25
26
27
28
29
# File 'lib/pio/open_flow13/send_out_port.rb', line 22

def max_length
  case @format.max_length
  when NO_BUFFER
    :no_buffer
  else
    @format.max_length
  end
end