Class: Pio::OpenFlow::NiciraAction

Inherits:
Action
  • Object
show all
Defined in:
lib/pio/open_flow/nicira_action.rb

Overview

NXAST_* actions

Class Method Summary collapse

Methods inherited from Action

action_header, #initialize, method_missing, read, #to_binary

Constructor Details

This class inherits a constructor from Pio::OpenFlow::Action

Class Method Details

.nicira_action_header(options) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/pio/open_flow/nicira_action.rb', line 9

def self.nicira_action_header(options)
  module_eval do
    action_header action_type: options.fetch(:action_type),
                  action_length: options.fetch(:action_length)
    uint32 :vendor, value: 0x2320
    uint16 :subtype, value: options.fetch(:subtype)
  end
end