Commit 938b0fef authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add a skipvlans flag to experiments table; when set, do not run

snmpit on experiment swapin. Good debugging tool.
parent ee0928ec
......@@ -1129,6 +1129,7 @@ CREATE TABLE `experiments` (
`panic_date` datetime default NULL,
`delay_capacity` tinyint(3) unsigned default NULL,
`savedisk` tinyint(1) NOT NULL default '0',
`skipvlans` tinyint(1) NOT NULL default '0',
`locpiper_pid` int(11) default '0',
`locpiper_port` int(11) default '0',
`instance_idx` int(10) unsigned NOT NULL default '0',
......
use strict;
use libdb;
#
# Add a skipvlans toggle so that an experiment can be swapped in
# but without vlan creation. This is exclusively a debugging feature.
#
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("experiments", "skipvlans")) {
DBQueryFatal("alter table experiments add ".
" `skipvlans` tinyint(1) NOT NULL default '0' ".
" after savedisk");
}
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