Commit 0207b3f1 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add 25G and 56G to interfaces enum.

parent a85d27c3
......@@ -2678,7 +2678,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('0','10','100','1000','4000','10000','25000','40000','56000','100000') NOT NULL default '0',
`duplex` enum('full','half') NOT NULL default 'full',
`noportcontrol` tinyint(1) NOT NULL default '0',
`rtabid` smallint(5) unsigned NOT NULL default '0',
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $type = DBSlotType("interfaces", "current_speed");
if ($type !~ /250/) {
DBQueryFatal("alter table interfaces ".
" change `current_speed` `current_speed` " .
" enum('0','10','100','1000','4000','10000','25000',".
" '40000','56000','100000') NOT NULL default '0'");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
Supports Markdown
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