lib/testlab/network/actions.rb in testlab-1.1.0 vs lib/testlab/network/actions.rb in testlab-1.2.0
- old
+ new
@@ -60,11 +60,11 @@
# Start the network
def up
@ui.logger.debug { "Network Up: #{self.id} " }
(self.node.state != :running) and return false
- (self.state == :running) and return false
+ # (self.state == :running) and return false
please_wait(:ui => @ui, :message => format_object_action(self, 'Up', :green)) do
self.node.bootstrap(<<-EOF, :ignore_exit_status => true)
set -x
ifconfig #{self.bridge} #{self.ip} netmask #{self.netmask} broadcast #{self.broadcast} up
@@ -79,10 +79,10 @@
# Stop the network
def down
@ui.logger.debug { "Network Down: #{self.id} " }
(self.node.state != :running) and return false
- (self.state != :running) and return false
+ # (self.state != :running) and return false
please_wait(:ui => @ui, :message => format_object_action(self, 'Down', :red)) do
self.node.bootstrap(<<-EOF, :ignore_exit_status => true)
set -x
ifconfig #{self.bridge} down