[rancid] Re: debug and empty config issue
Konstantin Yudayev
kyudayev at verizon.com
Tue Jan 12 17:07:23 UTC 2010
Now it creates those semi-empty files even if debug is off. I think we
need to remove "$host.new" if run has failed regardless of $debug but I
am not sure what would happened if I leave unconditional `unlink
"$host.new"`. Please advise.
- Konstantin
On Wed, 2010-01-06 at 11:27 -0800, john heasley wrote:
> Wed, Jan 06, 2010 at 01:20:35PM -0500, Konstantin Yudayev:
> > Hello,
> >
> > I've recently enabled bug in all bin/*rancid* ($debug = 1) and looks
> > like there is an issue with unaccessible devices. If a device is not
> > currently available the rancid produces following output in the config
> > file (that is a whole file for every "offline" router):
> >
> > !RANCID-CONTENT-TYPE: erx (or whatever vendor is)
> > !
> > !
> > !
> > !
> >
> > This is obviously a problem because it replaces the existing config with
> > this output and once router is back online the actual config will
> > replace this file.
> >
> > I need an advice on how this can be fixed and offline devices will be
> > skipped the same way as when debug is disabled.
>
> remove the lines
> unlink "$host.new" if (! $debug);
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100112/94a22e64/attachment.html
More information about the Rancid-discuss
mailing list