Class: Trema::PortStatsReply
- Inherits:
-
StatsHelper
- Object
- StatsHelper
- Trema::PortStatsReply
- Defined in:
- ruby/trema/port-stats-reply.rb
Constant Summary collapse
- FIELDS =
%w(port_no rx_packets tx_packets rx_bytes) + %w(tx_bytes rx_dropped tx_dropped rx_errors tx_errors) + %w(rx_frame_err rx_over_err rx_crc_err collisions )
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PortStatsReply
constructor
Port counters or errors for one or more physical ports.
Methods inherited from StatsHelper
Constructor Details
#initialize(options = {}) ⇒ PortStatsReply
Port counters or errors for one or more physical ports. A user would not explicitly instantiate a Trema::PortStatsReply object but would be created as a result of parsing the OFPT_STATS_REPLY(OFPST_PORT) message.
98 99 100 |
# File 'ruby/trema/port-stats-reply.rb', line 98 def initialize super FIELDS, end |