From e7dd009d8fa0cab70cbc0ac583ee9abea764099d Mon Sep 17 00:00:00 2001
From: Baptiste Jonglez <baptiste.jonglez@imag.fr>
Date: Wed, 16 Feb 2022 12:43:55 +0100
Subject: [PATCH] dell: fix save_config for Dell 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.
---
 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 9ce811f6..e9127868 100644
--- a/netmiko/dell/dell_force10_ssh.py
+++ b/netmiko/dell/dell_force10_ssh.py
@@ -7,7 +7,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