From 0205d2b9dc345d3437f8dfd6beba0ef3a5d6d3a0 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 22 Sep 2008 20:03:02 +0000 Subject: [PATCH] -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 --- perl-xCAT/xCAT/MacMap.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/MacMap.pm b/perl-xCAT/xCAT/MacMap.pm index fce666a98..4eddb716a 100644 --- a/perl-xCAT/xCAT/MacMap.pm +++ b/perl-xCAT/xCAT/MacMap.pm @@ -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',