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:
		@@ -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()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user