From 49feeca21328392069c136b03befff4bc1751498 Mon Sep 17 00:00:00 2001 From: yinle Date: Tue, 18 Jan 2011 09:34:10 +0000 Subject: [PATCH] FSP/BPA redundancy: we need to take a consideration of the case that the existed hostname which we want to use is IP address and different from the new IP address git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8693 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 873ff241a..2ff049f6b 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -1687,6 +1687,10 @@ sub parse_responses { #if ( exists($opt{M}) ) { $hostname = match_vpdtable($type, $result[1], $result[2],$result[3], $result[5], $result[6], $result[7], $result[8]); #} + my $ifip1 = xCAT::Utils->isIpaddr($hostname); + if ($ifip1) { + $hostname = $severnode1[4]; + } if ($hostname) { #$severnode1[4] = $hostip{$hostname}; $outhash{$hostname} = \@severnode1; @@ -1709,6 +1713,11 @@ sub parse_responses { #if ( exists($opt{M}) ) { $hostname = match_vpdtable($type, $result[1], $result[2],$result[3], $result[5], $result[6], $result[7], $result[8]); #} + my $ifip2 = xCAT::Utils->isIpaddr($hostname); + if ($ifip2) { + $hostname = $severnode2[4]; + } + if ($hostname) { #$severnode2[4] = $hostip{$hostname}; $outhash{$hostname} = \@severnode2;