update the ipadd for lshwconn

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2011-03-04 08:49:01 +00:00
parent 6340b4daca
commit 7d3d00937e

View File

@ -590,11 +590,12 @@ sub lshwconn
my $slot = $5;
my $ipadd = $6;
my $alt_ipaddr = $7;
if($ipadd ne $node_ip) {
$ipadd=$7;
$alt_ipaddr = $6;
}
$data = "$sp,ipadd=$node_ip,alt_ipadd=$alt_ipaddr,state=$state";
#if($ipadd ne $node_ip) {
# $ipadd=$7;
# $alt_ipaddr = $6;
#}
#$data = "$sp,ipadd=$node_ip,alt_ipadd=$alt_ipaddr,state=$state";
$data = "$sp,ipadd=$ipadd,alt_ipadd=$alt_ipaddr,state=$state";
#my $s;
#foreach my $val ( @infomap ) {
# if ( $data =~ /@$val[0]=([\w.\-\s]+)/ ) {