[rancid] Rollback functionality and potential pitfalls
Miles Lott
mlott at gie.com
Tue Feb 12 20:27:59 UTC 2013
Seems like it might be better to just overwrite running or startup
configs using copy from tftp. Or maybe I am missing your point.
On 02/12/2013 10:04 AM, Ramon wrote:
> Hello all,
>
> I am currently looking in to a way to implement rollback functionality
> using rancid. What would it take to reverse bad changes and restore
> the config of a cisco device back to a previous saved version?
>
> I ask because just pushing the original config on top of the modified
> version would not remove or flush out certain statements, possibly
> leaving duplicates that would have to be removed manually.
>
> My first idea was to create a negative file, by generating a "no
> statement" for every line in the new config that does not match the
> old config. After pushing the negative file and removing the changes I
> would push the old config to restore any of the deleted statements.
>
> Feedback on any foreseeable issues such as possible hierarchical
> problems (interfaces, acls, bgp) would be very welcomed.
>
> Thanks,
> Ramon
--------------------------------------------------------------------------------
Privileged, Proprietary and/or Confidential Information may be contained in
this electronic message. If you are not the intended recipient, you should
not copy it, re-transmit it, use it or disclose its contents, but should
kindly return to the sender immediately and delete your copy from your system.
Gulf Interstate Engineering Company does not accept responsibility for
changes made to this electronic message or its attachments.
More information about the Rancid-discuss
mailing list