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, #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.



126
127
128
# File 'lib/sdn/message.rb', line 126

def msg
  @msg
end

#paramsObject

Returns the value of attribute params.



126
127
128
# File 'lib/sdn/message.rb', line 126

def params
  @params
end

Instance Method Details

#class_inspectObject



130
131
132
133
134
135
# File 'lib/sdn/message.rb', line 130

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

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