From b56ec8e75c29c4c345529d5fca80012a6a40111b Mon Sep 17 00:00:00 2001 From: yinle Date: Wed, 13 Apr 2011 05:29:20 +0000 Subject: [PATCH] Hidden IPV6 address for HMC temporarily. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9291 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index fc882c880..47922ed1a 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -2245,6 +2245,19 @@ sub parse_responses { ########################################### # Strip commas from IP list ########################################### + + # we need te hidden ipv6 ip address temporarily + my @iptmp = split /,/, $result[4]; + my @iptmp2; + foreach (@iptmp){ + if ($_ =~ /\d+\.\d+\.\d+\.\d+/) { + push @iptmp2,$_; + } + } + $result[4] = join( ",", @iptmp2); + # end of hidden ipv6 ip address + + $result[4] =~ s/,/ /g; my $ip = $result[4];