class Trema::Controller::FlowModDeleteOption
Pio::FlowMod.new argument
Public Class Methods
new(user_options)
click to toggle source
# File lib/trema/controller.rb, line 67 def initialize(user_options) @user_options = user_options end
Public Instance Methods
to_hash()
click to toggle source
# File lib/trema/controller.rb, line 71 def to_hash { command: :delete, transaction_id: rand(0xffffffff), buffer_id: @user_options[:buffer_id] || 0xffffffff, match: @user_options.fetch(:match), out_port: @user_options[:out_port] || 0xffffffff } end