class SetNwTTLAction

Class used to define OpenFlow action to set IP header Time To Live (network layer)

Public Class Methods

new(order: 0, ip_ttl: nil) click to toggle source

Parameters

  • order

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

  • ip_ttl

    integer : The Time To Live to set in the IP header.

Calls superclass method Action.new
# File lib/openflowdev/actions/set_nw_ttl_action.rb, line 37
def initialize(order: 0, ip_ttl: nil)
  super(order: order)
  raise ArgumentError, "IP TTL (ip_ttl) required" unless ip_ttl
  @ip_ttl = ip_ttl
end