class Pio::OpenFlow13::Match::Oxm::MatchField

OXM match field.

Public Instance Methods

length() click to toggle source
# File lib/pio/open_flow13/match.rb, line 1194
def length
  class_payload.length + 2
end
masked?() click to toggle source
# File lib/pio/open_flow13/match.rb, line 1186
def masked?
  class_payload.oxm_hasmask == 1
end
method_missing(method, *args, &block) click to toggle source
# File lib/pio/open_flow13/match.rb, line 1198
def method_missing(method, *args, &block)
  case oxm_class
  when OpenFlowBasicValue::OXM_CLASS
    class_payload.tlv_value.__send__(method, *args, &block)
  when ExperimenterValue::OXM_CLASS
    class_payload.__send__(method, *args, &block)
  when PacketRegistersValue::OXM_CLASS
    class_payload.__send__(method, *args, &block)
  else
    raise NoMethodError, method.to_s
  end
end
oxm_field() click to toggle source
# File lib/pio/open_flow13/match.rb, line 1182
def oxm_field
  class_payload.oxm_field
end
oxm_length() click to toggle source
# File lib/pio/open_flow13/match.rb, line 1190
def oxm_length
  class_payload.oxm_length
end