Class: Pio::OpenFlow10::PacketIn

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

Overview

OpenFlow 1.0 Packet-In message

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



46
47
48
# File 'lib/pio/open_flow10/packet_in.rb', line 46

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.



50
51
52
# File 'lib/pio/open_flow10/packet_in.rb', line 50

def datapath_id
  @datapath_id
end

Instance Method Details

#dataObject



38
39
40
# File 'lib/pio/open_flow10/packet_in.rb', line 38

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

#lldp?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/pio/open_flow10/packet_in.rb', line 42

def lldp?
  data.is_a? Lldp
end