Skip to content

Commit

Permalink
eos: Save running-config for rollback instead of startup-config (fixe…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Chilton committed May 28, 2023
1 parent 50ab9f7 commit 9416216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm/eos/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def commit_config(self, message="", revert_in=None):
raise CommitError("Pending commit confirm already in process!")

commands = [
"copy startup-config flash:rollback-0",
"copy running-config flash:rollback-0",
"configure session {} commit timer {}".format(
self.config_session,
time.strftime("%H:%M:%S", time.gmtime(revert_in)),
Expand All @@ -517,7 +517,7 @@ def commit_config(self, message="", revert_in=None):
self._run_commands(commands, encoding="text")
else:
commands = [
"copy startup-config flash:rollback-0",
"copy running-config flash:rollback-0",
"configure session {} commit".format(self.config_session),
"write memory",
]
Expand Down

0 comments on commit 9416216

Please sign in to comment.