From 9416216c5fcee084ac83eccdfc858e1f710e2639 Mon Sep 17 00:00:00 2001 From: Ian Chilton Date: Sun, 28 May 2023 22:05:53 +0100 Subject: [PATCH] eos: Save running-config for rollback instead of startup-config (fixes issue #1952). --- napalm/eos/eos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napalm/eos/eos.py b/napalm/eos/eos.py index 52db5463b..381e2c4d9 100644 --- a/napalm/eos/eos.py +++ b/napalm/eos/eos.py @@ -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)), @@ -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", ]