From f94475e61527e0d05d0597dfc24ff30d1d40afbd Mon Sep 17 00:00:00 2001 From: yinle Date: Wed, 15 Aug 2012 13:53:23 +0000 Subject: [PATCH] part of the fix of PMR 29187,066,866 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13517 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 3b29708d9..faebddc88 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -1198,6 +1198,17 @@ sub parse_responses { } } } + trace( $request, "\n\n\nBegin to adjust fsp/bpa's id"); + foreach my $h ( keys %outhash ) { + if(${$outhash{$h}}{type} eq TYPE_CEC or ${$outhash{$h}}{type} eq TYPE_FRAME) { + my @children = split /,/, ${$outhash{$h}}{children}; + foreach my $child (@children) { + ${$outhash{$child}}{fid} = ${$outhash{$h}}{fid}; + ${$outhash{$child}}{cid} = ${$outhash{$h}}{cid}; + trace( $request, "child is $child, fid is ${$outhash{$child}}{fid}, cid is ${$outhash{$child}}{cid}"); + } + } + } ########################################################## # If there is -n flag, skip the matched nodes