diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 65bc522c6..1a9eae916 100644 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -57,6 +57,19 @@ vm => { 'beacon' => "This flag is used by xCAT to track the state of the identify LED with respect to the VM." } }, +websrv => { + cols => [qw(node port username password comments disable)], + keys => [qw(node)], + table_desc => 'Web service parameters', + descriptions => { + 'node' => 'The web service hostname.', + 'port' => 'The port of the web service.', + 'username' => 'Userid to use to access the web service.', + 'password' => 'Password to use to access the web service.', + 'comments' => 'Any user-written notes.', + 'disable' => "Set to 'yes' or '1' to comment out this row.", + }, + }, bootparams => { cols => [qw(node kernel initrd kcmdline addkcmdline dhcpstatements adddhcpstatements comments disable)], keys => [qw(node)], @@ -1087,7 +1100,73 @@ my @nodeattrs = ( {attr_name => 'room', tabentry => 'nodepos.room', access_tabentry => 'nodepos.node=attr:node', - }); + }, +###################### +# vm table # +###################### + {attr_name => 'vmhost', + tabentry => 'vm.host', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'migrationdest', + tabentry => 'vm.migrationdest', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmstorage', + tabentry => 'vm.storage', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmmemory', + tabentry => 'vm.memory', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmcpus', + tabentry => 'vm.cpus', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmnics', + tabentry => 'vm.nics', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmbootorder', + tabentry => 'vm.bootorder', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmvirtflags', + tabentry => 'vm.virtflags', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmvncport', + tabentry => 'vm.vncport', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmtextconsole', + tabentry => 'vm.textconsole', + access_tabentry => 'vm.node=attr:node', + }, + {attr_name => 'vmbeacon', + tabentry => 'vm.beacon', + access_tabentry => 'vm.node=attr:node', + }, +###################### +# websrv table # +###################### + {attr_name => 'webport', + only_if => 'nodetype=websrv', + tabentry => 'websrv.port', + access_tabentry => 'websrv.node=attr:node', + }, + {attr_name => 'username', + only_if => 'nodetype=websrv', + tabentry => 'websrv.username', + access_tabentry => 'websrv.node=attr:node', + }, + {attr_name => 'password', + only_if => 'nodetype=websrv', + tabentry => 'websrv.password', + access_tabentry => 'websrv.node=attr:node', + }, + ); ####################