From a4e1fb7ebe0081b1670fed6ad52e581f0fb46d9d Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Tue, 6 Mar 2012 11:07:25 +0000 Subject: [PATCH] fix bug about 'mkhwconn blade -t' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11761 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPUtils.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/FSPUtils.pm b/perl-xCAT/xCAT/FSPUtils.pm index ac2bb700f..df6c2c15e 100644 --- a/perl-xCAT/xCAT/FSPUtils.pm +++ b/perl-xCAT/xCAT/FSPUtils.pm @@ -82,18 +82,19 @@ sub fsp_api_action { } $id = $$attrs[0]; $fsp_name = $$attrs[3]; - - if($$attrs[4] =~ /^fsp$/ || $$attrs[4] =~ /^lpar$/ || $$attrs[4] =~ /^(cec|blade)$/) { + if($$attrs[4] =~ /^fsp$/ || $$attrs[4] =~ /^lpar$/ || $$attrs[4] =~ /^cec$/) { $type = 0; $fsp_bpa_type="fsp"; } elsif($$attrs[4] =~ /^bpa$/ || $$attrs[4] =~ /^frame$/) { $type = 1; $fsp_bpa_type="bpa"; + } elsif($$attrs[4] =~ /^blade$/) { + $type = 0; + $fsp_bpa_type = "blade"; } else { $res = "$fsp_name\'s type is $$attrs[4]. Not support for $$attrs[4]"; return ([$node_name, $res, -1]); } - if( $action =~ /^add_connection$/) { ############################ # Get IP address @@ -133,7 +134,9 @@ sub fsp_api_action { return ([$fsp_name, $res, -1]); } $tmp_node = $$children[0]; - } else { + } elsif ($$attrs[4] =~ /^blade$/) { + $tmp_node = $$attrs[5]; + } else { $tmp_node = $fsp_name; }