Class: Pio::OpenFlow13::PacketIn

Inherits:
Pio::OpenFlow::Message show all
Defined in:
lib/pio/open_flow13/packet_in.rb

Overview

OpenFlow 1.3 PacketIn message parser and generator

Defined Under Namespace

Classes: Reason

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Pio::OpenFlow::Message

inherited, #initialize, method_missing, open_flow_header, read, #to_binary

Constructor Details

This class inherits a constructor from Pio::OpenFlow::Message

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



52
53
54
# File 'lib/pio/open_flow13/packet_in.rb', line 52

def method_missing(method, *args)
  data.__send__(method, *args).snapshot
end

Instance Attribute Details

#datapath_idObject Also known as: dpid

Returns the value of attribute datapath_id.



40
41
42
# File 'lib/pio/open_flow13/packet_in.rb', line 40

def datapath_id
  @datapath_id
end

Instance Method Details

#dataObject



44
45
46
# File 'lib/pio/open_flow13/packet_in.rb', line 44

def data
  @data ||= Pio::Parser.read(raw_data)
end

#in_portObject



48
49
50
# File 'lib/pio/open_flow13/packet_in.rb', line 48

def in_port
  match.in_port
end