From 4d6ad6fada63b412c27df7c6a19faa0b7d3a2dc0 Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez <baptiste.jonglez@inria.fr> Date: Tue, 3 Jan 2023 15:18:24 +0100 Subject: [PATCH] dell: fix save_config for Dell Force10 / OS9 devices On a Dell S4048-ON switch running OS9 version 9.14(2.5), the current save_config() implementation does not work: sw#copy running-configuration startup-configuration % Error: The source file does not exist. There are two ways to save on OS9: either "copy running-config startup-config" (but it requires a confirmation), or "write memory". We use the latter to avoid dealing with the confirmation prompt. Also tested on a Dell S4810 running Dell OS 8.3.10.1, it has the same behaviour. Unfortunately I don't have access to a device with the original Force10 OS, but according to old manuals found online, "write memory" seems to also be supported. --- netmiko/dell/dell_force10_ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netmiko/dell/dell_force10_ssh.py b/netmiko/dell/dell_force10_ssh.py index 715e7d80..245ac273 100644 --- a/netmiko/dell/dell_force10_ssh.py +++ b/netmiko/dell/dell_force10_ssh.py @@ -25,7 +25,7 @@ class DellForce10SSH(CiscoSSHConnection): def save_config( self, - cmd: str = "copy running-configuration startup-configuration", + cmd: str = "write memory", confirm: bool = False, confirm_response: str = "", ) -> str: -- GitLab