From 3bcf7f6072badd5eed701babec11b86f0eadd8eb Mon Sep 17 00:00:00 2001 From: jjhua Date: Wed, 16 Mar 2011 07:22:26 +0000 Subject: [PATCH] rspconfig supports for redundancy FSPs. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9059 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPcfg.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/FSPcfg.pm b/perl-xCAT/xCAT/FSPcfg.pm index b88400e73..7b5c2714d 100644 --- a/perl-xCAT/xCAT/FSPcfg.pm +++ b/perl-xCAT/xCAT/FSPcfg.pm @@ -278,7 +278,7 @@ sub fsp_api_passwd { ############################ # Set type for FSP or BPA ############################ - if($$attrs[4] =~ /^fsp$/ || $$attrs[4] =~ /^lpar$/) { + if($$attrs[4] =~ /^fsp$/ || $$attrs[4] =~ /^lpar$/ || $$attrs[4] =~ /^cec$/) { $type = 0; } else { $type = 1; @@ -287,7 +287,8 @@ sub fsp_api_passwd { ############################ # Get IP address ############################ - $fsp_ip = xCAT::Utils::get_hdwr_ip($fsp_name); + #$fsp_ip = xCAT::Utils::get_hdwr_ip($fsp_name); + $fsp_ip = xCAT::Utils::getNodeIPaddress($fsp_name); if($fsp_ip == -1) { $res = "Failed to get the $fsp_name\'s ip"; return ([$node_name, $res, -1]);