lib/testlab/network/status.rb in testlab-1.0.1 vs lib/testlab/network/status.rb in testlab-1.1.0
- old
+ new
@@ -61,14 +61,14 @@
TestLab::Utility.broadcast(self.address)
end
# Network Bridge State
def state
- exit_code = self.node.ssh.exec(%(sudo brctl show #{self.bridge} 2>&1 | grep -i 'No such device'), :ignore_exit_status => true).exit_code
+ exit_code = self.node.exec(%(sudo brctl show #{self.bridge} 2>&1 | grep -i 'No such device'), :ignore_exit_status => true).exit_code
if (exit_code == 0)
:not_created
else
- output = self.node.ssh.exec(%(sudo ifconfig #{self.bridge} 2>&1 | grep 'MTU'), :ignore_exit_status => true).output.strip
+ output = self.node.exec(%(sudo ifconfig #{self.bridge} 2>&1 | grep 'MTU'), :ignore_exit_status => true).output.strip
if ((output =~ /UP/) || (output =~ /RUNNING/))
:running
else
:stopped
end