[rancid] Excluding config lines in Rancid

Linux Threads linuxthreads at gmail.com
Sat Sep 18 22:51:20 UTC 2021


Hi Rancid Users,

Thank you Andreas! that did the trick,

Tim I am running rancid 3.13, I did edit  #  fortigate.pm - Fortigate
rancid procedures

under:

     if ($filter_osc >= 2) {
...
...
...
...
...
...
         next if (/^\s*Virus-DB: .*/);
         next if (/AV AI\/ML Model: .*/);


Regards

Juan

On Fri, 2021-09-17 at 18:57 +0000, Tim McIntire wrote:
> I have this problem also,, but don’t know where to make the update. 
>  
> Thanks…
> 
> Tim
>  
> From: Rancid-discuss [mailto:rancid-discuss-bounces at www.shrubbery.net
> ] On Behalf Of Andreas Ott
> Sent: Friday, September 17, 2021 1:40 PM
> To: linuxthreads at gmail.com
> Cc: rancid-discuss at shrubbery.net
> Subject: Re: [rancid] Excluding config lines in Rancid
>  
> Hi,
>  
>  
> On Fri, Sep 17, 2021 at 12:28 AM Linux Threads <
> linuxthreads at gmail.com> wrote:
> > the following does not work for me I am sure the / in AV AI/ML
> > Model is
> > the culprit
> > 
> > next if (/AV AI/ML Model:/);
> 
>  
> Correct, you need to escape quote the center slash in 'AI/ML' with a
> backslash as it is also used as the delimiter for the regex. Try this
>  
>  next if (/AV AI\/ML Model:/);
>  
> -andreas



More information about the Rancid-discuss mailing list