Discussion:
[rancid] Filtering files pre-checkin
Jonathan Hansen
2008-09-04 20:44:56 UTC
Permalink
I am trying to find a way to filter a few lines like temperature and
up time from the SVN checkin so that I only see actual changes.

I have been able to filter them in the update emails, but not the
checkin itself.

Anyone have a suggestion on how to do this?

Thanks,

Jonathan
Mike Ashcraft
2008-09-05 04:42:28 UTC
Permalink
The issue at hand is that rancid can't be everything for everyone out of the box. There are too many opinions out there as to what should/should not be included. And everyone has valid reasoning for their position. This leaves the admin to make a few code adjustments on their own which are easily accomplished.

You can modify bin/rancid (or the appropriate script if your device is not a cisco) so that lines are not output based on regular expression matches. You could also comment out the router command that generates the undesired output. There are a number of these exceptions already in the code if you need a sample code snippet. Some common exceptions are even triggered by environmental variables to make them easy to turn on/off.

Another option would be to add some code to bin/control_rancid to strip the undesired content before the diff is generated (to prevent e-mail) or before the file is checked in.

Mike

-----Original Message-----
From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Jonathan Hansen
Sent: Thursday, September 04, 2008 2:45 PM
To: rancid-***@shrubbery.net
Subject: [rancid] Filtering files pre-checkin

I am trying to find a way to filter a few lines like temperature and
up time from the SVN checkin so that I only see actual changes.

I have been able to filter them in the update emails, but not the
checkin itself.

Anyone have a suggestion on how to do this?

Thanks,

Jonathan
_______________________________________________
Rancid-discuss mailing list
Rancid-***@shrubbery.net
http://www.shrubbery.net/mailman/l

Loading...