Class: OVSImager::LinuxBridge
- Inherits:
-
Object
- Object
- OVSImager::LinuxBridge
- Defined in:
- lib/ovsimager/linuxbridge.rb
Instance Method Summary collapse
- #exec_brtcl ⇒ Object
-
#initialize ⇒ LinuxBridge
constructor
A new instance of LinuxBridge.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ LinuxBridge
Returns a new instance of LinuxBridge.
5 6 7 8 |
# File 'lib/ovsimager/linuxbridge.rb', line 5 def initialize() brctl_out = exec_brtcl @br = parse brctl_out end |
Instance Method Details
#exec_brtcl ⇒ Object
14 15 16 |
# File 'lib/ovsimager/linuxbridge.rb', line 14 def exec_brtcl() Utils.execute('brctl show') end |
#to_hash ⇒ Object
10 11 12 |
# File 'lib/ovsimager/linuxbridge.rb', line 10 def to_hash() return @br end |