From 4e7fe2eb0fbf95d65a7d1293d982ccbb60cbda3d Mon Sep 17 00:00:00 2001 From: yinle Date: Sat, 12 Feb 2011 07:59:51 +0000 Subject: [PATCH] FSP/BPA redundancy: add support for the rpower operation on CEC git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8836 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCcli.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/PPCcli.pm b/perl-xCAT/xCAT/PPCcli.pm index c266e0af8..ea00f819c 100644 --- a/perl-xCAT/xCAT/PPCcli.pm +++ b/perl-xCAT/xCAT/PPCcli.pm @@ -29,10 +29,12 @@ use constant { ############################################## my %lssyscfg = ( fsp =>"lssyscfg -r sys -m %s -F %s", + cec =>"lssyscfg -r sys -m %s -F %s", fsps =>"lssyscfg -r sys -F %s", node =>"lssyscfg -r lpar -m %s -F %s --filter lpar_ids=%s", lpar =>"lssyscfg -r lpar -m %s -F %s", bpa =>"lssyscfg -r frame -e %s -F %s", + frame =>"lssyscfg -r frame -e %s -F %s", bpas =>"lssyscfg -r frame -F %s", prof =>"lssyscfg -r prof -m %s --filter %s", profs =>"lssyscfg -r prof -m %s -F %s --filter %s", @@ -1141,7 +1143,8 @@ sub power_cmd { my $op = shift; my $d = shift; - my $type = (@$d[4] eq "fsp") ? "sys" : @$d[4]; + #my $type = (@$d[4] eq "fsp") ? "sys" : @$d[4]; + my $type = ( @$d[4] =~ /^(fsp|cec)$/ ) ? "sys" : @$d[4]; ############################## # Build command