Commit a2f3f1bd authored by Leigh B. Stoller's avatar Leigh B. Stoller

Kill max_ports/max_cards from node_types table, add max_interfaces.

parent c47d0599
......@@ -699,8 +699,7 @@ CREATE TABLE node_types (
speed smallint(5) unsigned default NULL,
RAM smallint(5) unsigned default NULL,
HD float(10,2) default NULL,
max_cards tinyint(3) unsigned default NULL,
max_ports tinyint(3) unsigned default NULL,
max_interfaces tinyint(3) unsigned default '0',
osid varchar(35) NOT NULL default '',
control_net tinyint(3) unsigned default NULL,
power_time smallint(5) unsigned NOT NULL default '60',
......
......@@ -784,3 +784,15 @@ last_net_act,last_cpu_act,last_ext_act);
the node was temporarily given while it's configuring:
alter table new_nodes add column temporary_IP varchar(15) after IP;
1.165: Kill max_ports and max_cards, replace with max_interfaces.
alter table node_types drop max_ports;
alter table node_types drop max_cards;
alter table node_types add max_interfaces tinyint(3) \
unsigned default '0' after HD;
update node_types set max_interfaces=5 where type='pc600';
update node_types set max_interfaces=5 where type='pc850';
update node_types set max_interfaces=3 where type='pcL440GX';
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment