Skip to content

Commit

Permalink
Updating to single command to parse 'set output mode'
Browse files Browse the repository at this point in the history
  • Loading branch information
msozer-dn committed Jul 7, 2023
1 parent 5f9eaa9 commit 9f186ef
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions netmiko/fortinet/fortinet_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9f186ef

Please sign in to comment.