[rancid] Rancid 3.0 and Dell Switches

heasley heas at shrubbery.net
Fri Apr 25 19:01:13 UTC 2014


Fri, Apr 25, 2014 at 06:52:16PM +0000, heasley:
> Fri, Apr 25, 2014 at 08:30:58AM -0400, Gerhard Mourani:
> > After patching dell.pm I get this error in the log file, not the same as
> > before but doesn't work:
> > 
> > Trying to get all of the configs.
> > Useless use of a variable in void context at (eval 3) line 1.
> >  failed:
> 
> oops; I need to improve that error msg.

like so:

Index: bin/rancid.in
===================================================================
--- bin/rancid.in	(revision 2816)
+++ bin/rancid.in	(working copy)
@@ -117,6 +117,9 @@
 }
 
 # loop over the input using the provided input/main loop
+if (!defined($inloop) || length($inloop) < 1) {
+    die "inloop is not configured for device type $devtype";
+}
 eval($inloop ."(*INPUT, *OUTPUT);") && die "${inloop} failed: $@\n";
 
 print STDOUT "Done $lscript: $_\n" if ($log);



More information about the Rancid-discuss mailing list