Class: Pio::OpenFlow13::Match::Oxm::NiciraMatchExtension

Inherits:
BinData::Record show all
Defined in:
lib/pio/open_flow13/match.rb

Overview

Nicira match extension

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



921
922
923
# File 'lib/pio/open_flow13/match.rb', line 921

def method_missing(method, *args, &block)
  tlv_value.__send__ method, *args, &block
end

Instance Method Details

#lengthObject



913
914
915
# File 'lib/pio/open_flow13/match.rb', line 913

def length
  tlv_value.length + 2
end

#masked?Boolean

Returns:

  • (Boolean)


917
918
919
# File 'lib/pio/open_flow13/match.rb', line 917

def masked?
  oxm_hasmask == 1
end