Merge "Replace usage of ifconfig with ip"

This commit is contained in:
Jenkins
2013-02-22 17:54:28 +00:00
committed by Gerrit Code Review

View File

@@ -231,7 +231,7 @@ def check_ifcfg(host, device):
Raises ScriptRuntimeError if given host does not have give device.
"""
server = utils.ScriptRunner(host)
cmd = "ifconfig %s || ( echo Device %s does not exist && exit 1 )"
cmd = "ip addr show dev %s || ( echo Device %s does not exist && exit 1 )"
server.append(cmd % (device, device))
server.execute()