[rancid] Nexus 9K support in RANCiD 3.7

Charles T. Brooks Charles.Brooks at hbcs.org
Fri Dec 29 23:00:36 UTC 2017


I like your patch better!  You might want to normalize the style in the previous line while you're in there - "&& next" instead of "next if".  I'm not a perl guru, though.

--Charlie

________________________________________
From: heasley [heas at shrubbery.net]
Sent: Friday, December 29, 2017 3:36 PM
To: Charles T. Brooks
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Nexus 9K support in RANCiD 3.7

How about the following, so nothing is mistakingly caught.

Index: nxos.pm.in
===================================================================
--- nxos.pm.in  (revision 3754)
+++ nxos.pm.in  (working copy)
@@ -497,7 +497,8 @@
        /\s+vtp_debug(_old)?\.log$/ && next;

        next if (/BufferMonitor-1HourData/);
-       if (/ log\/$/) {
+
+       if (/( debug_logs| log)\/$/) {
            # change
            #         8192    Jan 08 14:05:05 2015  log/
            # to

------------------  CONFIDENTIALITY NOTICE  ---------------

  This message, including any attachments, is for the sole use of the
intended recipient(s) and may contain privileged confidential information
protected by law. Any unauthorized review, use, disclosure or distribution
of this message is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of this message.
 
     ------------------  CONFIDENTIALITY NOTICE  ---------------



More information about the Rancid-discuss mailing list