Class: Trema::DSL::CustomSwitch

Inherits:
Switch show all
Defined in:
ruby/trema/dsl/custom-switch.rb

Instance Attribute Summary

Attributes inherited from Stanza

#name

Instance Method Summary collapse

Methods inherited from Switch

#dpid, #ports, #validate

Methods inherited from Stanza

#[], #fetch

Constructor Details

#initialize(name = nil) ⇒ CustomSwitch

Returns a new instance of CustomSwitch.



27
28
29
# File 'ruby/trema/dsl/custom-switch.rb', line 27

def initialize name = nil
  super name
end

Instance Method Details

#path(filepath) ⇒ Object



32
33
34
# File 'ruby/trema/dsl/custom-switch.rb', line 32

def path filepath
  @path = filepath
end