From bfe8d7b327d37b25de7d8f737cd5b023884b4dc5 Mon Sep 17 00:00:00 2001 From: yinle Date: Wed, 15 Aug 2012 13:52:26 +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/trunk@13516 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 b0bf820de..f951d7d8d 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