Class: CopyTTLOutwardsAction
- Defined in:
- lib/openflowdev/actions/copy_ttl_outwards_action.rb
Overview
Class defining openflow action to copy Time To Live from next-to-outermost header to outermost header.
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
-
#initialize(order: 0) ⇒ CopyTTLOutwardsAction
constructor
- Parameters *
order -
integer : The order of the action relative to other actions in Instruction.
- Parameters *
- #to_hash ⇒ Object
Constructor Details
#initialize(order: 0) ⇒ CopyTTLOutwardsAction
Parameters
order-
integer : The order of the action relative to other actions in Instruction.
36 37 38 |
# File 'lib/openflowdev/actions/copy_ttl_outwards_action.rb', line 36 def initialize(order: 0) super(order: order) end |
Instance Method Details
#to_hash ⇒ Object
40 41 42 |
# File 'lib/openflowdev/actions/copy_ttl_outwards_action.rb', line 40 def to_hash {:order => @order, 'copy-ttl-out' => {}} end |