Sha256: adc07914b454dda449c7b956431952b51c4444850dc0372919ba94454dad01a8

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

require 'pio/open_flow/action'
require 'pio/open_flow13/match'

module Pio
  module OpenFlow13
    # Set metadata
    class SetMetadata < OpenFlow::Action
      action_header action_type: 25, action_length: 16

      uint16 :oxm_class, value: Match::OpenFlowBasicValue::OXM_CLASS
      bit7 :oxm_field, value: Match::ArpOperation::OXM_FIELD
      bit1 :oxm_hasmask, value: 0
      uint8 :oxm_length, value: 8
      uint64 :metadata

      def initialize(metadata)
        super metadata: metadata
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pio-0.30.1 lib/pio/open_flow13/set_metadata.rb
pio-0.30.0 lib/pio/open_flow13/set_metadata.rb