Class: Pio::OpenFlow13::FlowMod::Command
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Pio::OpenFlow13::FlowMod::Command
- Defined in:
- lib/pio/open_flow13/flow_mod.rb
Overview
enum ofp_flow_mod_command
Constant Summary collapse
- COMMANDS =
{ add: 0, modify: 1, modify_strict: 2, delete: 3, delete_strict: 4 }.freeze
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
23 24 25 |
# File 'lib/pio/open_flow13/flow_mod.rb', line 23 def get COMMANDS.invert.fetch(command) end |
#set(value) ⇒ Object
27 28 29 |
# File 'lib/pio/open_flow13/flow_mod.rb', line 27 def set(value) self.command = COMMANDS.fetch(value) end |