ignoring some changes

john heasley heas at shrubbery.net
Tue Jan 6 17:20:15 UTC 2004


Tue, Jan 06, 2004 at 03:12:17PM +0200, Yuval Ben-Ari:
> Hi,
> 
> I would like to have the option to ignore certain lines that keep
> changing every time "write mem" is done on the router.
> like "config.text" files on IOS Catalyst's or local user passwords on
> certain IOS's.
> currently it is done by hack to bin/rancid itself which filters these
> lines altogether but I would rather just ignore it during the cvs diff
> operation.
> Is there an easy place to add regexp of lines that should be ignored
> during the diff operation ?

not ATM.  we have discussed this a bit and plan to add something after
the next release (ie: after 2.3).

> example of unwanted diffs:
> 
> @@ -26,9 +26,9 @@
>  !
>  !Flash: Directory of flash:/
>  !Flash:     7  drwx         320   Mar 01 1993 20:17:06
> c1100-k9w7-mx.122-13.JA1
> +!Flash:     2  -rwx        1951   Mar 01 1993 23:47:13  private-config
>  !Flash:     3  -rwx         212   Mar 01 1993 00:10:06  env_vars
> -!Flash:     4  -rwx        2589   Mar 01 1993 17:47:38  config.txt
> -!Flash:     5  -rwx        1951   Mar 01 1993 17:47:38  private-config
> +!Flash:     5  -rwx        2589   Mar 01 1993 23:47:13  config.txt
>  !Flash: 7741440 bytes total (4176384 bytes free)
>  !
>  !
> 
> 
> Thanks
> Yuval



More information about the Rancid-discuss mailing list