I do the same: modify each parser to ignore various lines (such as timestamped items) -- is this the wrong method for ignoring certain config diffs?<br clear="all"><div><br>-- Eric Cables</div>
<br><br><div class="gmail_quote">On Thu, Jun 27, 2013 at 10:54 PM, Alan McKinnon <span dir="ltr"><<a href="mailto:alan.mckinnon@gmail.com" target="_blank">alan.mckinnon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 28/06/2013 00:18, heasley wrote:<br>
> Wed, Jun 19, 2013 at 11:39:31PM +0200, Alan McKinnon:<br>
>> Rancid could really benefit from some kind of call-out mechanism where<br>
>> we can add our own local tweaks and keep them out of the main code, but<br>
>> unfortunately 2.3.x doesn't have this.<br>
>><br>
>> Perhaps a worthy addition to the 3.0 series!<br>
><br>
> What do you mean 'call-out mechanism'? in 3.0 you can tell rancid which<br>
> module to include (need to add functionality to include multiple modules)<br>
> and tell it what function to use to parse the output.<br>
><br>
<br>
</div>Yes, something like that.<br>
<br>
The problem I face is I've forked every parser script I use, and it's<br>
always to add or remove entire commands or individual regexes. These<br>
things work best when the regex definition is treated as data out of a<br>
config, not as pure code<br>
<br>
I still haven't fully read the 3.0 code yet, so I could well be asking<br>
for something you've already done<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Alan McKinnon<br>
<a href="mailto:alan.mckinnon@gmail.com">alan.mckinnon@gmail.com</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
</div></div></blockquote></div><br>