class Pio::OpenFlow13::PacketIn::Reason
Why is this packet being sent to the controller? (enum ofp_packet_in_reason) rubocop:disable LineLength
Constants
- REASONS
Public Instance Methods
get()
click to toggle source
# File lib/pio/open_flow13/packet_in.rb, line 20 def get REASONS.invert.fetch(reason) end
set(value)
click to toggle source
# File lib/pio/open_flow13/packet_in.rb, line 24 def set(value) self.reason = REASONS.fetch(value) end