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
This commit is contained in:
xq2005 2013-07-08 09:16:31 +00:00
parent 75bfe9b646
commit e5e7e4687d

View File

@ -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) {