From 9f186ef6f1f1ee2a9188345ebc75dc0c139dc6e6 Mon Sep 17 00:00:00 2001 From: Muhammed SOZER Date: Fri, 7 Jul 2023 17:11:41 +0100 Subject: [PATCH] Updating to single command to parse 'set output mode' --- netmiko/fortinet/fortinet_ssh.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/netmiko/fortinet/fortinet_ssh.py b/netmiko/fortinet/fortinet_ssh.py index d2a7109c3..73764a27d 100644 --- a/netmiko/fortinet/fortinet_ssh.py +++ b/netmiko/fortinet/fortinet_ssh.py @@ -148,13 +148,7 @@ def _get_output_mode_v6(self) -> str: if self._vdoms: self._config_global() - self._send_command_str( - "config system console", expect_string=self.prompt_pattern - ) - output = self._send_command_str( - "show full-configuration", expect_string=self.prompt_pattern - ) - self._send_command_str("end", expect_string=self.prompt_pattern) + output = self._send_command_str("show full-configuration system console") if self._vdoms: self._exit_config_global()