Sha256: b5b3cbef8ba01dde21729d32e9454ed13d685710a8e74b622aa0116128072a1b

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

require 'pio/open_flow10/match'

module Pio
  # OpenFlow 1.0 exact match
  class ExactMatch
    def initialize(packet_in)
      @match = packet_in.data.to_exact_match(packet_in.in_port)
    rescue NoMethodError
      raise NotImplementedError,
            "#{packet_in.data.class} is not yet supported by ExactMatch."
    end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pio-0.30.0 lib/pio/open_flow10/exact_match.rb
pio-0.29.0 lib/pio/open_flow10/exact_match.rb
pio-0.28.1 lib/pio/open_flow10/exact_match.rb
pio-0.28.0 lib/pio/open_flow10/exact_match.rb
pio-0.27.2 lib/pio/open_flow10/exact_match.rb