Commit b865e08a authored by Leigh B Stoller's avatar Leigh B Stoller

Back out previous revision. As a short term solution add a flag to the

interfaces table that tells snmpit not to mess with the port.
parent 496784e6
......@@ -2555,8 +2555,9 @@ 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('auto','0','10','100','1000','4000','10000','40000','100000') NOT NULL default '0',
`current_speed` enum('0','10','100','1000','4000','10000','40000','100000') NOT NULL default '0',
`duplex` enum('full','half') NOT NULL default 'full',
`fixedmode` tinyint(1) NOT NULL default '0',
`rtabid` smallint(5) unsigned NOT NULL default '0',
`vnode_id` varchar(32) default NULL,
`whol` tinyint(4) NOT NULL default '0',
......
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('0','10','100','1000','4000','10000',".
" '40000','100000') NOT NULL default '0'");
}
if (!DBSlotExists("interfaces", "fixedmode")) {
DBQueryFatal("alter table interfaces " .
" add `fixedmode` tinyint(1) NOT NULL default '0' ".
" after duplex");
}
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