Class: Trema::DescStatsReply

Inherits:
StatsHelper show all
Defined in:
ruby/trema/desc-stats-reply.rb

Constant Summary collapse

FIELDS =
%w(mfr_desc hw_desc sw_desc serial_num dp_desc )

Instance Method Summary collapse

Methods inherited from StatsHelper

#to_s

Constructor Details

#initialize(options = {}) ⇒ DescStatsReply

Descriptive information about a vswitch. A user would not explicitly instantiate a Trema::DescStatsReply object but would be created as a result of parsing the OFPT_STATS_REPLY(OFPST_DESC) message.

Returns an object that encapsulates the OFPST_STATS_REPLY(OFPST_DESC) OpenFlow message.

Examples:

DescStatsReply.new(
  :mfr_desc => "Nicira Networks, Inc.",
  :hw_desc => "Open vSwitch",
  :sw_desc => "1.2.2"
  :serial_num => "None"
)

Parameters:

  • options (Hash) (defaults to: {})

    the options to create this instance with.

Options Hash (options):

  • :mfr_desc (String)

    the manufacturer description.

  • :hw_desc (String)

    the hardware description.

  • :sw_desc (String)

    the software description.

  • :serial_num (String)

    the serial number.

  • :dp_desc (String)

    the human readable description of datapath.



64
65
66
# File 'ruby/trema/desc-stats-reply.rb', line 64

def initialize options
  super FIELDS, options
end