Commit c47c44fd authored by Robert Ricci's avatar Robert Ricci
Browse files

Add information about where the interface is connected to the switch

to the new_interfaces table.
parent 48009b52
......@@ -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)
......@@ -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);
Supports Markdown
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