Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -571,6 +571,9 @@ CREATE TABLE new_interfaces ( ...@@ -571,6 +571,9 @@ CREATE TABLE new_interfaces (
iface varchar(10) NOT NULL default '', iface varchar(10) NOT NULL default '',
mac varchar(12) NOT NULL default '', mac varchar(12) NOT NULL default '',
interface_type varchar(15) default NULL, 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) PRIMARY KEY (new_node_id,iface)
) TYPE=MyISAM; ) TYPE=MyISAM;
......
...@@ -763,3 +763,10 @@ last_net_act,last_cpu_act,last_ext_act); ...@@ -763,3 +763,10 @@ last_net_act,last_cpu_act,last_ext_act);
create table node_type_features (type varchar(30) not null, create table node_type_features (type varchar(30) not null,
feature varchar(30) not null, weight float not null default 0.0, feature varchar(30) not null, weight float not null default 0.0,
primary key (type,feature)); 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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment