Re: [cricket-users] common.pm

From: trygvelu@bug.itea.ntnu.no
Date: Fri Jul 16 1999 - 06:58:00 PDT


From: <trygvelu@bug.itea.ntnu.no>

On Thu, 15 Jul 1999 trygvelu@bug.itea.ntnu.no wrote:
> This is another, although small, bug introduced in v0.68. The old
> lib/Common.pm is now gone, but if you just comment out line 29 in
> util/listInterfaces:
> ..
> #use common;
> use snmpUtils;
> ..
>
> Then it should (probably) work. (..)

Actually, it doesn't. Not like it used to, anyway. On some routers the
snmpUtils wrapper will complain because it doesn't find a variable, and
you'll get this error:
Undefined subroutine &snmpUtils::Warn called at ../lib/snmpUtils.pm line
49.

To get the old behaviour back you'll need to include at least
Common/Log.pm in listInterfaces, where common.pm used to be. So, around
line 29, put in a line like this
...
use Common::Log;
use snmpUtils;
...

(Maybe Common::Log should rather be included in snmpUtils.pm, since that
is where the call to Warn is.. Jeff should know)

sorry for not noticing this earlier(so it could have been part of 0.69 :)

-- 
Trygve Lunheim
NTNU ITEA/Nett

--------------------------- ONElist Sponsor ----------------------------

Books, music, auctions, and more. Amazon.com! <a href=" http://clickme.onelist.com/ad/Amazon6 ">Click Here</a>

------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:00:56 PST