Commit 1f2956b8 authored by Robert Ricci's avatar Robert Ricci

Chage the new_interfaces table to contain card numbers, rather than

iface names
parent d0e9a809
......@@ -568,13 +568,13 @@ CREATE TABLE mode_transitions (
CREATE TABLE new_interfaces (
new_node_id int(11) NOT NULL default '0',
iface varchar(10) NOT NULL default '',
card int(11) NOT NULL default '0',
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)
PRIMARY KEY (new_node_id,card)
) TYPE=MyISAM;
--
......
......@@ -770,3 +770,12 @@ last_net_act,last_cpu_act,last_ext_act);
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);
1.163: Chage the new_interfaces table to contain card numbers, rather than
iface names:
alter table new_interfaces drop primary key;
alter table new_interfaces drop column iface;
alter table new_interfaces add column card int not null after
new_node_id;
alter table new_interfaces add primary key (new_node_id,card);
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