Class: OpenFlow::Protocol::Statistics

Inherits:
Message show all
Defined in:
lib/openflow-protocol/messages/statistics.rb

Direct Known Subclasses

StatisticsReply, StatisticsRequest

Constant Summary collapse

STATISTICS_TYPES =
[
  :description,
  :flow,
  :aggregate,
  :table,
  :port,
  :queue
]

Constants inherited from Message

Message::HEADER_LENGTH, Message::OFP_VERSION, Message::TYPES

Instance Attribute Summary

Attributes inherited from SuperclassBase

#type_str

Instance Method Summary collapse

Methods inherited from SuperclassBase

#initialize_instance

Instance Method Details

#body_lengthObject



23
24
25
# File 'lib/openflow-protocol/messages/statistics.rb', line 23

def body_length
  4 + statistics.to_binary_s.length
end

#flags_listObject



16
17
18
# File 'lib/openflow-protocol/messages/statistics.rb', line 16

def flags_list
  self.class.const_get(:FLAGS)
end