[rancid] Re: Ignoring certain diffs

Eric Cables ecables at gmail.com
Wed Nov 19 17:09:34 UTC 2008


Anyone?

On Mon, Nov 17, 2008 at 9:39 AM, Eric Cables <ecables at gmail.com> wrote:
> I went through the archives, and implemented one of the solutions for
> ignoring diffs (such as call-forward, etc.).
>
> I implemented it as follows in control_rancid:
> <-- snippit -->
> if [ $RCSSYS = "cvs" ] ; then
> DIFFSUPPRESS="-I '.*call-forward.*' -I '.*Flash.*nvram.*'"
>
>     cvs -f diff -u -4 -ko $DIFFSUPPRESS \
>         | sed -e '/^RCS file: /d' -e '/^--- /d' \
>         -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff
> else
>     svn diff | sed -e '/^+++ /d' -e 's/^\([-+ ]\)/\1 /' >$TMP.diff
> <-- snippit -->
>
>
> Unfortunately this doesn't seem to have worked.  I checked my RANCID e-mail
> this morning and it shows the following:
>
> Index: configs/<hostname>
> ===================================================================
> retrieving revision 1.4
> diff -u -4 -I ''\''.*call-forward.*'\''' -I ''\''.*Flash.*nvram.*'\''' -r1.4
> <hostname> @@ -26,16 +26,16 @@
>   !Flash: nvram: Directory of nvram:/
> - !Flash: nvram:   230  -rw-        7166                    <no date>
> startup-config
> + !Flash: nvram:   230  -rw-        7127                    <no date>
> startup-config
>   !Flash: nvram:   231  ----        3867                    <no date>
> private-config
> - !Flash: nvram:   232  -rw-        7166                    <no date>
> underlying-config
> + !Flash: nvram:   232  -rw-        7127                    <no date>
> underlying-config
>
> It looks like it should have ignored any lines with "Flash: nvram", yet they
> are still showing up.
>
> Can anyone please provide a second set of eyes and help me figure out what
> I've done wrong?
>
> Thanks,
>
>
> --
> Eric Cables
>


More information about the Rancid-discuss mailing list