Sha256: cb18e57e6e1aec79318e862ef7e2b04dd293a945b7f43cbe325859e885ea10ec
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
module Pio module OpenFlow10 module Error # enum ofp_error_type class ErrorType10 < BinData::Primitive ERROR_TYPES = { hello_failed: 0, bad_request: 1, bad_action: 2, flow_mod_failed: 3, port_mod_failed: 4, queue_operation_failed: 5 }.freeze endian :big uint16 :error_type def get ERROR_TYPES.invert.fetch(error_type) end def set(value) self.error_type = ERROR_TYPES.fetch(value) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.1 | lib/pio/open_flow10/error/error_type10.rb |