From fdbca9e83bfad6a917db9c79eab419fd64e2b1e6 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Wed, 21 Dec 2011 02:49:21 +0000 Subject: [PATCH] NGP support. Add nodetype to mp table. Add the alias of mp.id with name slotid for mgt=fsp. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11277 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 95f2c7deb..0ab9b1c2e 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -406,15 +406,16 @@ monsetting => { }, }, mp => { - cols => [qw(node mpa id comments disable)], + cols => [qw(node mpa id nodetype comments disable)], keys => [qw(node)], table_desc => 'Contains the hardware control info specific to blades. This table also refers to the mpa table, which contains info about each Management Module.', descriptions => { node => 'The blade node name or group name.', mpa => 'The managment module used to control this blade.', id => 'The slot number of this blade in the BladeCenter chassis.', - comments => 'Any user-written notes.', - disable => "Set to 'yes' or '1' to comment out this row.", + nodetype => 'The hardware type for mp node. Valid values: mm,cmm, blade.', + comments => 'Any user-written notes.', + disable => "Set to 'yes' or '1' to comment out this row.", }, }, mpa => { @@ -1587,6 +1588,11 @@ my @nodeattrs = ( tabentry => 'zvm.nodetype', access_tabentry => 'ppc.node=attr:node', }, + {attr_name => 'hwtype', + only_if => 'mgt=blade', + tabentry => 'mp.nodetype', + access_tabentry => 'mp.node=attr:node', + }, {attr_name => 'supernode', tabentry => 'ppc.supernode', access_tabentry => 'ppc.node=attr:node', @@ -1689,9 +1695,16 @@ my @nodeattrs = ( # mp table # ################ {attr_name => 'mpa', - only_if => 'mgt=blade', + # Remove the restriction so that fsp also can + # write to mpa attribute + #only_if => 'mgt=blade', tabentry => 'mp.mpa', access_tabentry => 'mp.node=attr:node', + }, + {attr_name => 'slotid', + only_if => 'mgt=fsp', + tabentry => 'mp.id', + access_tabentry => 'mp.node=attr:node', }, {attr_name => 'id', only_if => 'mgt=blade',