Replace usage of ifconfig with ip

1) ifconfig is considered deprecated and ip should always be used instead
2) ip is used in the rest of the script already

Change-Id: I19c8620d1a9a4a15437283c21bc029eb1127e0f5
This commit is contained in:
Sandro Mathys
2013-02-21 13:31:06 +01:00
parent 73c7350f90
commit ff5bb0f15e

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()