Sha256: 8d3284500cd1af7c47e32ded7870f399a6a2e67b8beec405481172343c106f88

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

require 'pio/open_flow10/match'

module Pio
  module OpenFlow10
    # OpenFlow 1.0 exact match
    class ExactMatch < OpenFlow::FlowMatch
      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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pio-0.30.2 lib/pio/open_flow10/exact_match.rb