class Pio::OpenFlow10::PacketIn::Reason

Why is this packet being sent to the controller? (enum ofp_packet_in_reason)

Constants

REASONS

Public Instance Methods

get() click to toggle source
# File lib/pio/open_flow10/packet_in/reason.rb, line 13
def get
  REASONS.invert.fetch(reason)
end
set(value) click to toggle source
# File lib/pio/open_flow10/packet_in/reason.rb, line 17
def set(value)
  self.reason = REASONS.fetch(value)
end
to_bytes() click to toggle source
# File lib/pio/open_flow10/packet_in/reason.rb, line 21
def to_bytes
  reason.to_hex
end