diff --git a/netmiko/vyos/vyos_ssh.py b/netmiko/vyos/vyos_ssh.py index 97e1cb59e..9198f0a65 100644 --- a/netmiko/vyos/vyos_ssh.py +++ b/netmiko/vyos/vyos_ssh.py @@ -137,9 +137,10 @@ def save_config( ) -> str: """Saves Config.""" output = self.config_mode() - output = super().save_config( + output += super().save_config( cmd=cmd, confirm=confirm, confirm_response=confirm_response ) + output += self.exit_config_mode() if "Done" not in output: raise ValueError(f"Save failed with following errors:\n\n{output}") return output