Skip to content

adding restore_mode overwrite to the restore role #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Sep 8, 2022

Conversation

IPvSean
Copy link
Member

@IPvSean IPvSean commented Sep 8, 2022

Sometimes in Cisco IOS we want to overwrite, not just "restore config" which is basically doing a merge.

You need to add an extra_var to your Job Template that says
restore_mode: overwrite

This is DISRUPTIVE and does this->

  1. copy the backup config to flash: (storage on the Cisco IOS device)
  2. overwrite the startup-config
  3. reboot the device
  4. waits for it to reboot
  5. send message to terminal / Automation controller to let you know
    image

This only currently exists for Cisco IOS (not tested on Arista and Juniper yet)

@IPvSean IPvSean merged commit 15223c0 into network-automation:master Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant