class SetNwDstAction
Class to define OpenFlow action to set the destination IP (network layer) address
Public Class Methods
new(order: nil, ip_addr: nil)
click to toggle source
Parameters
order
-
integer : The order of the action relative to other actions in Instruction.
ip_addr
-
string : The destination IP address to set.
Calls superclass method
Action.new
# File lib/openflowdev/actions/set_nw_dst_action.rb, line 37 def initialize(order: nil, ip_addr: nil) super(order: order) raise ArgumentError, "IP Address (ip_addr) required" unless ip_addr @ip = ip_addr end