Class: SDN::Message::UnknownMessage

Inherits:
SDN::Message show all
Defined in:
lib/sdn/message.rb

Overview

messages after this point were decoded from UAI+ communication and may be named wrong

Direct Known Subclasses

PostNodeStackVersion

Instance Attribute Summary collapse

Attributes inherited from SDN::Message

#ack_requested, #dest, #reserved, #src

Instance Method Summary collapse

Methods inherited from SDN::Message

#initialize, #inspect, parse, readpartial, #serialize

Methods included from Helpers

#checksum, #from_number, #from_string, #is_group_address?, #parse_address, #print_address, #to_number, #to_string, #transform_param

Constructor Details

This class inherits a constructor from SDN::Message

Instance Attribute Details

#msgObject

Returns the value of attribute msg.



161
162
163
# File 'lib/sdn/message.rb', line 161

def msg
  @msg
end

#paramsObject

Returns the value of attribute params.



161
162
163
# File 'lib/sdn/message.rb', line 161

def params
  @params
end

Instance Method Details

#class_inspectObject



165
166
167
168
169
170
# File 'lib/sdn/message.rb', line 165

def class_inspect
  result = ", @msg=%02xh" % msg
  return result if params.empty?

  result << ", @params=#{params.map { |b| "%02x" % b }.join(' ')}"
end