From 35208b1fb209b41175e5222fef481d66a2e9a7ee Mon Sep 17 00:00:00 2001 From: "Leigh B. Stoller" <stoller@flux.utah.edu> Date: Fri, 5 Nov 2004 19:38:47 +0000 Subject: [PATCH] Add elabinelab_vlans table for mapping inner elab vlan ids to auto assigned outer elab vlan ids. --- sql/database-create.sql | 12 ++++++++++++ sql/database-migrate.txt | 14 ++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/sql/database-create.sql b/sql/database-create.sql index fec1b441b3..fca3adabf2 100644 --- a/sql/database-create.sql +++ b/sql/database-create.sql @@ -150,6 +150,18 @@ CREATE TABLE deltas ( PRIMARY KEY (delta_id) ) TYPE=MyISAM; +-- +-- Table structure for table `elabinelab_vlans` +-- + +CREATE TABLE elabinelab_vlans ( + pid varchar(12) NOT NULL default '', + eid varchar(32) NOT NULL default '', + inner_id int(11) unsigned NOT NULL default 0, + outer_id int(11) unsigned NOT NULL default 0, + PRIMARY KEY (pid,eid,inner_id) +) TYPE=MyISAM; + -- -- Table structure for table `emulab_indicies` -- diff --git a/sql/database-migrate.txt b/sql/database-migrate.txt index 6048e5008b..4edf74a3bb 100644 --- a/sql/database-migrate.txt +++ b/sql/database-migrate.txt @@ -2106,3 +2106,17 @@ last_net_act,last_cpu_act,last_ext_act); enum('ctrl','expt','jail','fake','other','gw','outer_ctrl') \ default NULL; +1.271: Add elabinelab_vlans table for mapping inner elab vlan ids to + auto assigned outer elab vlan ids. + + CREATE TABLE elabinelab_vlans ( + pid varchar(12) NOT NULL default '', + eid varchar(32) NOT NULL default '', + inner_id int(11) unsigned NOT NULL default 0, + outer_id int(11) unsigned NOT NULL default 0, + PRIMARY KEY (pid,eid,inner_id) + ) TYPE=MyISAM; + + + + \ No newline at end of file -- GitLab