Sha256: a63a4f91180b6191284d21b6e267927bc9c28e291a89de5cc52093d798065b7f

Contents?: true

Size: 456 Bytes

Versions: 5

Compression:

Stored size: 456 Bytes

Contents

require 'pio/open_flow/action'

module Pio
  module OpenFlow
    # NXAST_* actions
    class NiciraAction < Action
      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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pio-0.30.1 lib/pio/open_flow/nicira_action.rb
pio-0.30.0 lib/pio/open_flow/nicira_action.rb
pio-0.29.0 lib/pio/open_flow/nicira_action.rb
pio-0.28.1 lib/pio/open_flow/nicira_action.rb
pio-0.28.0 lib/pio/open_flow/nicira_action.rb