class SetMplsTTLAction
Class to define an OpenFlow action to set the MPLS Time To Live (TTL)
Public Class Methods
new(order: 0, mpls_ttl: nil)
click to toggle source
Parameters
order
-
integer : The order of the action relative to other actions in Instruction.
mpls_ttl
-
integer : The Time To Live to set in the MPLS header.
Calls superclass method
Action.new
# File lib/openflowdev/actions/set_mpls_ttl_action.rb, line 37 def initialize(order: 0, mpls_ttl: nil) super(order: order) raise ArgumentError, "MPLS TTL (mpls_ttl) required" unless mpls_ttl @mpls_ttl = mpls_ttl end