Class: CopyTTLInwardsAction

Inherits:
Action
  • Object
show all
Defined in:
lib/openflowdev/actions/copy_ttl_inwards_action.rb

Overview

Class defining the action that copies Time To Live from outermost header to next-to-outermost header.

Instance Attribute Summary

Attributes inherited from Action

#order

Instance Method Summary collapse

Constructor Details

#initialize(order: 0) ⇒ CopyTTLInwardsAction

Parameters

  • order

    integer : The order of the action relative to other actions in Instruction.



36
37
38
# File 'lib/openflowdev/actions/copy_ttl_inwards_action.rb', line 36

def initialize(order: 0)
  super(order: order)
end

Instance Method Details

#to_hashObject



40
41
42
# File 'lib/openflowdev/actions/copy_ttl_inwards_action.rb', line 40

def to_hash
  {:order => @order, 'copy-ttl-in' => {}}
end