From ff5bb0f15e54282dbdd616354433f17bc7766599 Mon Sep 17 00:00:00 2001 From: Sandro Mathys Date: Thu, 21 Feb 2013 13:31:06 +0100 Subject: [PATCH] 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 --- packstack/plugins/nova_300.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packstack/plugins/nova_300.py b/packstack/plugins/nova_300.py index 2b1d2a091..8bd8316d5 100644 --- a/packstack/plugins/nova_300.py +++ b/packstack/plugins/nova_300.py @@ -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()