From d1f20424627337806b1c91d3cc5977d51581db12 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 7 Feb 2012 03:17:34 +0000 Subject: [PATCH] set cons=fsp for NGP power blade during the rscan git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11493 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 02d6be705..f6340d65e 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -1509,6 +1509,9 @@ sub rscan { $k2->{node} = $name; if ($type eq "ppcblade" || $type eq "fsp") { $u2->{mgt} = "fsp"; + if ($type eq "ppcblade"){ + $u2->{cons} = "fsp"; + } } else { $u2->{mgt} = "blade"; if($type eq "blade"){ @@ -1604,6 +1607,8 @@ sub rscan_xml { } elsif ( /^cons$/ ) { if($origtype eq "blade"){ $d = "blade"; + } elsif ($origtype eq "ppcblade"){ + $d = "fsp"; } else { $ignore = 1; } @@ -1691,6 +1696,8 @@ sub rscan_stanza { } elsif ( /^cons$/ ) { if($origtype eq "blade"){ $d = "blade"; + } elsif ($origtype eq "ppcblade"){ + $d = "fsp"; } else { $ignore = 1; }