From c19622f0e90fda38d703a7d9bf10b5cef6154ac7 Mon Sep 17 00:00:00 2001 From: yinle Date: Thu, 30 Jun 2011 07:32:49 +0000 Subject: [PATCH] modify defspec to support *def operation on hwtype with ppc/zvm.nodetype git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9985 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index d943bf840..e74c475f0 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -1526,10 +1526,31 @@ my @nodeattrs = ( tabentry => 'ppc.parent', access_tabentry => 'ppc.node=attr:node', }, - {attr_name => 'nodetype', + {attr_name => 'hwtype', + only_if => 'mgt=fsp', tabentry => 'ppc.nodetype', access_tabentry => 'ppc.node=attr:node', - }, + }, + {attr_name => 'hwtype', + only_if => 'mgt=bpa', + tabentry => 'ppc.nodetype', + access_tabentry => 'ppc.node=attr:node', + }, + {attr_name => 'hwtype', + only_if => 'mgt=ivm', + tabentry => 'ppc.nodetype', + access_tabentry => 'ppc.node=attr:node', + }, + {attr_name => 'hwtype', + only_if => 'mgt=hmc', + tabentry => 'ppc.nodetype', + access_tabentry => 'ppc.node=attr:node', + }, + {attr_name => 'hwtype', + only_if => 'mgt=zvm', + tabentry => 'zvm.nodetype', + access_tabentry => 'ppc.node=attr:node', + }, {attr_name => 'supernode', tabentry => 'ppc.supernode', access_tabentry => 'ppc.node=attr:node',