Class: Pio::OpenFlow13::GotoTable

Inherits:
Pio::OpenFlow::Instruction show all
Extended by:
Forwardable
Defined in:
lib/pio/open_flow13/goto_table.rb

Overview

Resubmit to the table_id

Defined Under Namespace

Classes: Format

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_id) ⇒ GotoTable

Returns a new instance of GotoTable.



36
37
38
# File 'lib/pio/open_flow13/goto_table.rb', line 36

def initialize(table_id)
  @format = Format.new(table_id: table_id)
end

Class Method Details

.read(raw_data) ⇒ Object



22
23
24
25
26
# File 'lib/pio/open_flow13/goto_table.rb', line 22

def self.read(raw_data)
  allocate.tap do |goto_table|
    goto_table.instance_variable_set :@format, Format.read(raw_data)
  end
end