Skip to content

Commit 286cdd7

Browse files
authored
Updating to single command to parse 'set output mode' (ktbyers#3248)
1 parent 5f9eaa9 commit 286cdd7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

netmiko/fortinet/fortinet_ssh.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,7 @@ def _get_output_mode_v6(self) -> str:
148148
if self._vdoms:
149149
self._config_global()
150150

151-
self._send_command_str(
152-
"config system console", expect_string=self.prompt_pattern
153-
)
154-
output = self._send_command_str(
155-
"show full-configuration", expect_string=self.prompt_pattern
156-
)
157-
self._send_command_str("end", expect_string=self.prompt_pattern)
151+
output = self._send_command_str("show full-configuration system console")
158152

159153
if self._vdoms:
160154
self._exit_config_global()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy