-Fix problem in MacMap where unfinished SNMPv3 work caused existing SNMPv1 to fail

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2221 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-09-22 20:03:02 +00:00
parent 0797ff747f
commit 0205d2b9dc

View File

@ -210,7 +210,10 @@ sub refresh_switch {
my $switch = shift;
my $snmpver=1;
my $privproto='AES';
my $swent=$switchestab->getAttribs({switch=>$switch},[qw(snmpversion username password privacy auth)]);
my $swent;
if ($switchestab) {
$swent=$switchestab->getAttribs({switch=>$switch},[qw(snmpversion username password privacy auth)]);
}
$session = new SNMP::Session(
DestHost => $switch,
Version => '1',