Sha256: 819ce57e659b10b937a6fa200b2d0aaf1ee4641267ec89c42829c9c5ae72122e
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true module Pio module OpenFlow10 # Flow Removed message class FlowRemoved < OpenFlow::Message # Why was this flow removed? # (enum ofp_flow_removed_reason) class Reason < BinData::Primitive REASONS = { idle_timeout: 0, hard_timeout: 1, delete: 2 }.freeze uint8 :reason def get REASONS.invert.fetch(reason) end def set(value) self.reason = REASONS.fetch(value) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.2 | lib/pio/open_flow10/flow_removed/reason.rb |