Class: OFError

Inherits:
OFMessage show all
Defined in:
lib/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 OFMessage

OFMessage::HEADER_LENGTH, OFMessage::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



58
59
60
# File 'lib/messages/error.rb', line 58

def body_length
  4 + data.length
end