From 7eb54f16aef4917eb4bbfc5f4fb9d170dedfb096 Mon Sep 17 00:00:00 2001 From: jet777 Date: Tue, 1 Jun 2010 14:52:34 +0000 Subject: [PATCH] feature 3006951 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6286 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Schema.pm | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 72288f6de..5e8b17361 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -912,8 +912,22 @@ zvm => { }, }, -); # end of tabspec definition - +firmware => { + cols => [qw(node cfgfile comments disable)], + keys => [qw(node)], + required => [qw(node)], + types => { + node => 'TEXT', + }, + table_desc => 'Maps node to firmware values to be used for setup at node discovery or later', + descriptions => { + node => 'The node id.', + cfgfile => 'The file to use.', + comments => 'Any user-written notes.', + disable => "Set to 'yes' or '1' to comment out this row.", + }, + }, +); # end of tabspec definition @@ -2174,6 +2188,22 @@ push(@{$defspec{group}->{'attrs'}}, @nodeattrs); ); +@{$defspec{firmware}->{'attrs'}} = +( + { attr_name => 'cfgfile', + tabentry => 'firmware.cfgfile', + access_tabentry => 'firmware.file=attr:cfgfile', + }, + {attr_name => 'comments', + tabentry => 'firmware.comments', + access_tabentry => 'firmware.file=attr:cfgfile', + }, + {attr_name => 'disable', + tabentry => 'auditlog.disable', + access_tabentry => 'firmware.file=attr:cfgfile', + }, +); + ###################################################