[rancid] Rollback functionality and potential pitfalls

Paul Magee pmagee at williamhill.co.uk
Wed Feb 13 12:20:50 UTC 2013


+1

I'd also take this approach

-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Miles Lott
Sent: 12 February 2013 20:28
To: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Rollback functionality and potential pitfalls

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. 

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss



--------------------------------------- -- ********************************************* Confidentiality: The contents of this e-mail and any attachments transmitted with it are intended to be confidential to the intended recipient; and may be privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. This e-mail is sent by a William Hill PLC group company. The William Hill group companies include, among others, William Hill PLC (registered number 4212563), William Hill Organization Limited (registered number 278208), William Hill US HoldCo Inc, WHG (International) Limited (registered number 99191) and WHG Trading Limited (registered number 101439). Each of William Hill PLC, William Hill Organization Limited is registered in England and Wales and has its registered office at Greenside House, 50 Station Road, Wood Green, London N22 7TP. William Hill U.S. HoldCo, Inc. is 160 Greentree Drive, Suite 101, Dover 19904, Kent, Delaware, United States of America. Each of WHG (International) Limited and WHG Trading Limited is registered in Gibraltar and has its registered office at 6/1 Waterport Place, Gibraltar. Unless specifically indicated otherwise, the contents of this e-mail are subject to contract; and are not an official statement, and do not necessarily represent the views, of William Hill PLC, its subsidiaries or affiliated companies. Please note that neither William Hill PLC, nor its subsidiaries and affiliated companies can accept any responsibility for any viruses contained within this e-mail and it is your responsibility to scan any emails and their attachments. William Hill PLC, its subsidiaries and affiliated companies may monitor e-mail traffic data and also the content of e-mails for effective operation of the e-mail system, or for security, purposes. *********************************************


More information about the Rancid-discuss mailing list