Class: Trema::CustomSwitch

Inherits:
HardwareSwitch show all
Includes:
Daemon
Defined in:
ruby/trema/custom-switch.rb

Instance Attribute Summary

Attributes inherited from HardwareSwitch

#name

Instance Method Summary collapse

Methods included from Daemon

#pid_file, #restart!, #run, #run!, #running?, #shutdown, #shutdown!

Methods inherited from HardwareSwitch

#dpid_long, #dpid_short

Constructor Details

#initialize(stanza) ⇒ CustomSwitch

Returns a new instance of CustomSwitch.



30
31
32
# File 'ruby/trema/custom-switch.rb', line 30

def initialize stanza
  super stanza
end

Instance Method Details

#commandObject



35
36
37
# File 'ruby/trema/custom-switch.rb', line 35

def command
  "CHIBACH_TMP=#{ Trema.tmp } #{ path } -i #{ dpid_short } > #{ log_file } &"
end