napalm-automation / napalm-ansible

Apache License 2.0
245 stars 103 forks source link

save the candidate configuration before we rollback #121

Closed yeled closed 6 years ago

yeled commented 6 years ago

In case you want to save a copy of the candidate config without trusting the get_diffs() implementation from your vendor.

For example: JunOS delivers a not-really-diff of their CLI config. This isn't something you can pipe to patch(1). Also, there are some EOS bugs with show session diffs which spam erroneous config when there is really no diff in reality (Arista bug 244870)

This is the same as archive_file except we pull the candidate config just before we rollback our changes we just pushed.

Use it just like archive_file in your ansible task.

yeled commented 6 years ago

what's up with the tests? They don't seem related to me.

dbarrosop commented 6 years ago

You have to add a note to the CHANGELOG describing your change :)

yeled commented 6 years ago

You have to add a note to the CHANGELOG describing your change :)

LOL all green now.