From af100ac3b24a9d6b87cea2eb9490b2bc236e808f Mon Sep 17 00:00:00 2001 From: yinle Date: Tue, 11 Jan 2011 16:00:56 +0000 Subject: [PATCH] FSP/BPA redundancy: Fix a mistake, HMC node may still has multiple IP addresses. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8610 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 3f0e9cadf..873ff241a 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -1821,7 +1821,12 @@ sub parse_responses { my $mtm = @$data[1]; my $sn = @$data[2]; my $side = @$data[3]; - my $ip0 = @$data[4]; + my $ip0; + if ( $h =~ /^([^\(]+)\(([^\)]+)\)$/ ) { + $ip0 = $2; + } else { + $ip0 = @$data[4]; + } my $bpamtm = @$data[5]; my $bpasn = @$data[6];