Class: Pio::OpenFlow10::ExactMatch
- Inherits:
-
Pio::OpenFlow::FlowMatch
- Object
- Pio::OpenFlow::FlowMatch
- Pio::OpenFlow10::ExactMatch
- Defined in:
- lib/pio/open_flow10/exact_match.rb
Overview
OpenFlow 1.0 exact match
Instance Method Summary collapse
-
#initialize(packet_in) ⇒ ExactMatch
constructor
A new instance of ExactMatch.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(packet_in) ⇒ ExactMatch
Returns a new instance of ExactMatch.
9 10 11 12 13 14 |
# File 'lib/pio/open_flow10/exact_match.rb', line 9 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 |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
16 17 18 |
# File 'lib/pio/open_flow10/exact_match.rb', line 16 def method_missing(method, *args, &block) @match.__send__ method, *args, &block end |