diff --git a/sql/database-create.sql b/sql/database-create.sql index 4f80c79e72c3c02cf41481b13bf1a4ef366d9e12..42e76e189133ce00080784040877c115a89f9c7a 100644 --- a/sql/database-create.sql +++ b/sql/database-create.sql @@ -571,6 +571,9 @@ CREATE TABLE new_interfaces ( iface varchar(10) NOT NULL default '', mac varchar(12) NOT NULL default '', interface_type varchar(15) default NULL, + switch_id varchar(10) default NULL, + switch_card tinyint(3) default NULL, + switch_port tinyint(3) default NULL, PRIMARY KEY (new_node_id,iface) ) TYPE=MyISAM; diff --git a/sql/database-migrate.txt b/sql/database-migrate.txt index ef98d425cce93c68061945e12ec4e2a83b2a3c05..88e7f84f1686b6724ed8978cba4e66ab2d11727d 100644 --- a/sql/database-migrate.txt +++ b/sql/database-migrate.txt @@ -763,3 +763,10 @@ last_net_act,last_cpu_act,last_ext_act); create table node_type_features (type varchar(30) not null, feature varchar(30) not null, weight float not null default 0.0, primary key (type,feature)); + +1.162: Add columns to the new_interfaces table indicating where the interface + is plugged into a switch: + + alter table new_interfaces add column switch_id char(10); + alter table new_interfaces add column switch_card tinyint(3); + alter table new_interfaces add column switch_port tinyint(3);