class CopyTTLInwardsAction

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

Public Class Methods

new(order: 0) click to toggle source

Parameters

  • order

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

Calls superclass method Action.new
# File lib/openflowdev/actions/copy_ttl_inwards_action.rb, line 36
def initialize(order: 0)
  super(order: order)
end

Public Instance Methods

to_hash() click to toggle source
# File lib/openflowdev/actions/copy_ttl_inwards_action.rb, line 40
def to_hash
  {:order => @order, 'copy-ttl-in' => {}}
end