Commit fc6ab986 authored by Jonathon Duerig's avatar Jonathon Duerig

Add external_wire and external_manager columns for stitching.

parent 9a4f50c9
......@@ -1370,6 +1370,7 @@ CREATE TABLE `external_networks` (
`node_type` varchar(30) NOT NULL default '',
`min_vlan` int(11) NOT NULL default '256',
`max_vlan` int(11) NOT NULL default '1000',
`external_manager` tinytext,
PRIMARY KEY (`network_id`),
UNIQUE KEY `node_id` (`node_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......@@ -5013,6 +5014,7 @@ CREATE TABLE `wires` (
`logical` tinyint(1) unsigned NOT NULL default '0',
`trunkid` mediumint(4) unsigned NOT NULL default '0',
`external_interface` tinytext,
`external_wire` tinytext,
PRIMARY KEY (`node_id1`,`card1`,`port1`),
KEY `node_id2` (`node_id2`,`card2`),
KEY `dest` (`node_id2`,`card2`,`port2`),
......
#
# Add external_wire slot to wires table and external_manager to
# external_networks table.
#
use strict;
use libdb;
my $impotent = 0;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("wires", "external_wire")) {
DBQueryFatal("alter table wires add ".
" `external_wire` tinytext NULL default NULL");
}
if (!DBSlotExists("external_networks", "external_manager")) {
DBQueryFatal("alter table external_networks add ".
" `external_manager` tinytext NULL default NULL");
}
return 0;
}
1;
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