[rancid] Re: Pinning Moving Config Lines
heas at shrubbery.net
Tue Jan 27 17:50:48 UTC 2009
Tue, Jan 27, 2009 at 11:18:14AM +0100, Michael Stefaniuc:
> Hello guys,
> is there an easy way to assign a fixed position to config lines that
> move around during two invocations of "write term"?
> In the Cisco SAN-OS devices the "callhome" config line moves between the
> front and end of the "fcalias name" sections producing bogus change reports.
how so? please show an example of the moving.
> The solutions I see on a quick glance (none satisfactory):
> - The absolute easiest way would be to just drop the line but for this
> config line it doesn't seem like a wise idea.
> - In the WriteTerm function create a separate ProcessHistory
> "fcalias name" section with sorting and add "callhome" to that section
> too. Drawback is that I would have to parse the "fcalias name"
> sections correctly too.
> Does anybody know a nicer way to pin the moving config line down?
We'd normally just sort it.
More information about the Rancid-discuss