[rancid] Rancid 3.0 and Dell Switches

heasley heas at shrubbery.net
Fri Apr 25 18:52:16 UTC 2014


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.

Index: lib/dell.pm.in
===================================================================
--- lib/dell.pm.in	(revision 2819)
+++ lib/dell.pm.in	(working copy)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+package dell;
 ##
 ## $Id: dlrancid.in 2258 2010-10-11 20:49:05Z heas $
 ##
@@ -72,6 +72,9 @@
 our $proc;
 our $found_version;
 
+ at ISA = qw(Exporter rancid main);
+#XXX @Exporter::EXPORT = qw($VERSION @commandtable %commands @commands);
+
 # load-time initialization
 sub import {
     $timeo = 300;		# dllogin timeout in seconds (some of these
@@ -134,7 +137,6 @@
 # This routine parses "get system"
 sub GetSystem {
     my($INPUT, $OUTPUT, $cmd) = @_;
-    my($priv_key);
     print STDERR "    In GetSystem: $_" if ($debug);
 
     while (<$INPUT>) {
Index: etc/rancid.types.base
===================================================================
--- etc/rancid.types.base	(revision 2816)
+++ etc/rancid.types.base	(working copy)
@@ -183,6 +183,7 @@
 dell;script;rancid
 dell;login;dllogin
 dell;module;dell
+dell;inloop;dell::inloop
 dell;command;dell::GetSystem;show switch;
 dell;command;dell::GetConf;show config current_config
 #



More information about the Rancid-discuss mailing list