Module: Havox::OpenFlow10::OVS::Actions
- Extended by:
- FieldParser
- Defined in:
- lib/havox/modules/openflow10/ovs/actions.rb
Class Method Summary collapse
Methods included from FieldParser
basic_action, parsed_ipv4, raise_unknown_action
Class Method Details
.treat(actions_array, opts = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/havox/modules/openflow10/ovs/actions.rb', line 7 def self.treat(actions_array, opts = {}) of_actions = [] actions_array.each do |obj| of_actions << case obj[:action] when 'Output' then basic_action(:output, obj[:arg_a]) when 'Enqueue' then output_or_enqueue(obj, opts[:output]) when 'SetField' then basic_action_from_set_field(obj) else raise_unknown_action(obj) end end of_actions end |