Class: Pio::Features::Reply
- Extended by:
- Forwardable
- Defined in:
- lib/pio/features/reply.rb
Overview
OpenFlow 1.0 Features Reply message
Defined Under Namespace
Classes: Body
Instance Method Summary collapse
- #actions ⇒ Object
- #capabilities ⇒ Object
- #datapath_id ⇒ Object (also: #dpid)
-
#initialize(user_options = {}) ⇒ Reply
constructor
A new instance of Reply.
- #n_buffers ⇒ Object
- #n_tables ⇒ Object
- #ports ⇒ Object
Methods inherited from Message
Constructor Details
#initialize(user_options = {}) ⇒ Reply
Returns a new instance of Reply.
34 35 36 37 38 39 |
# File 'lib/pio/features/reply.rb', line 34 def initialize( = {}) @options = .dup.merge(datapath_id: [:dpid]) body = Body.new(@options) @features = Format.new(@options.merge(message_type: 6, body: body.to_binary_s)) end |
Instance Method Details
#actions ⇒ Object
62 63 64 65 |
# File 'lib/pio/features/reply.rb', line 62 def actions @body ||= Body.read(@features.body) @body.actions end |
#capabilities ⇒ Object
57 58 59 60 |
# File 'lib/pio/features/reply.rb', line 57 def capabilities @body ||= Body.read(@features.body) @body.capabilities end |
#datapath_id ⇒ Object Also known as: dpid
41 42 43 44 |
# File 'lib/pio/features/reply.rb', line 41 def datapath_id @body ||= Body.read(@features.body) @body.datapath_id end |
#n_buffers ⇒ Object
47 48 49 50 |
# File 'lib/pio/features/reply.rb', line 47 def n_buffers @body ||= Body.read(@features.body) @body.n_buffers end |
#n_tables ⇒ Object
52 53 54 55 |
# File 'lib/pio/features/reply.rb', line 52 def n_tables @body ||= Body.read(@features.body) @body.n_tables end |
#ports ⇒ Object
67 68 69 70 |
# File 'lib/pio/features/reply.rb', line 67 def ports @body ||= Body.read(@features.body) @body.ports end |