Commit dd5acce7 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add "auto" to the current_speed enum in the interfaces table. To support

ports that do not support our oldish set of speed/duplex settings.
parent 857f0402
......@@ -2555,7 +2555,7 @@ CREATE TABLE `interfaces` (
`interface_type` varchar(30) default NULL,
`iface` text NOT NULL,
`role` enum('ctrl','expt','jail','fake','other','gw','outer_ctrl','mngmnt') default NULL,
`current_speed` enum('0','10','100','1000','4000','10000','40000','100000') NOT NULL default '0',
`current_speed` enum('auto','0','10','100','1000','4000','10000','40000','100000') NOT NULL default '0',
`duplex` enum('full','half') NOT NULL default 'full',
`rtabid` smallint(5) unsigned NOT NULL default '0',
`vnode_id` varchar(32) default NULL,
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $type = DBSlotType("interfaces", "current_speed");
if (! ($type =~ /auto/)) {
DBQueryFatal("alter table interfaces ".
" change `current_speed` `current_speed` " .
" enum('auto','0','10','100','1000','4000','10000',".
" '40000','100000') NOT NULL default '0'");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
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