Commit 5080c062 authored by Leigh Stoller's avatar Leigh Stoller

Add snmp_community to switch_stacks table, so we can specify a

per-device community string to override the community string in the
switch_stack_types table.
parent 7518bc4f
......@@ -3472,6 +3472,7 @@ CREATE TABLE `switch_stacks` (
`node_id` varchar(32) NOT NULL default '',
`stack_id` varchar(32) NOT NULL default '',
`is_primary` tinyint(1) NOT NULL default '1',
`snmp_community` varchar(32) default NULL,
KEY `node_id` (`node_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
#
# Add snmp_community to switch_stacks table, so we can specify a
# per-device community string to override the community string in the
# switch_stack_types table.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("switch_stacks", "snmp_community")) {
DBQueryFatal("alter table switch_stacks add ".
"`snmp_community` varchar(32) 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