Class: OpenFlow::Protocol::Error

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

Constant Summary collapse

TYPES =
[
  :hello_failed,
  :bad_request,
  :bad_action,
  :flow_mod_failed,
  :port_mod_failed,
  :queue_op_failed
]
HELLO_FAILED_CODES =
[:incompatible, :eperm]
BAD_REQUEST_CODES =
[
  :bad_version,
  :bad_type,
  :bad_stat,
  :bad_vendor,
  :bad_sub_type,
  :eperm,
  :bad_length,
  :buffer_empty,
  :buffer_unknown
]
BAD_ACTION_CODES =
[
  :bad_type,
  :bad_length,
  :bad_vendor,
  :bad_vendor_type,
  :bad_out_port,
  :bad_argument,
  :eperm,
  :too_many,
  :bad_queue
]
FLOW_MOD_FAILED_CODES =
[
  :all_tables_full,
  :overlap,
  :eperm,
  :bad_emerg_timeout,
  :bad_command,
  :unsupported
]
PORT_MOD_FAILED_CODES =
[:bad_port, :bad_hardware_address]
QUEUE_OP_FAILED_CODES =
[:bad_port, :bad_queue, :eperm]

Constants inherited from Message

Message::HEADER_LENGTH, Message::OFP_VERSION

Instance Attribute Summary

Attributes inherited from SuperclassBase

#type_str

Instance Method Summary collapse

Methods inherited from SuperclassBase

#initialize_instance

Instance Method Details

#body_lengthObject



60
61
62
# File 'lib/openflow-protocol/messages/error.rb', line 60

def body_length
  4 + data.length
end

#parsed_dataObject



64
65
66
# File 'lib/openflow-protocol/messages/error.rb', line 64

def parsed_data
  Parser.read data.to_s
end