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

Inherits:
BinData::Record
  • Object
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



814
815
816
# File 'lib/pio/open_flow13/match.rb', line 814

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

Instance Method Details

#lengthObject



806
807
808
# File 'lib/pio/open_flow13/match.rb', line 806

def length
  tlv_value.length + 2
end

#masked?Boolean

Returns:

  • (Boolean)


810
811
812
# File 'lib/pio/open_flow13/match.rb', line 810

def masked?
  oxm_hasmask == 1
end