From e5e7e4687d5431007f2a6229d914141c88f327db Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 8 Jul 2013 09:16:31 +0000 Subject: [PATCH] get the current configured static ip address in configeth git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16904 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/configeth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/configeth b/xCAT/postscripts/configeth index 555ddda94..4f1b30b41 100755 --- a/xCAT/postscripts/configeth +++ b/xCAT/postscripts/configeth @@ -166,7 +166,7 @@ for ($j=0; $j < (scalar @nics_to_install); $j++) { @nic_nets6 = (); #get current ips on this nic - my $str_ret = `ip addr show dev $nic 2>/dev/null | grep inet | grep -v link | awk '{print \$2}'`; + my $str_ret = `ip addr show dev $nic 2>/dev/null | grep inet | grep -v link | grep -v dynamic | awk '{print \$2}'`; my $bool_config_flag = 0; my %hash_oldips; if ($str_ret) {