Module netmiko.pluribus.pluribus_ssh
Expand source code
import time
from typing import Any
from netmiko.no_config import NoConfig
from netmiko.base_connection import BaseConnection
class PluribusSSH(NoConfig, BaseConnection):
"""Common methods for Pluribus."""
def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
self._config_mode = False
def session_preparation(self) -> None:
"""Prepare the netmiko session."""
self._test_channel_read()
self.set_base_prompt()
self.disable_paging()
# Clear the read buffer
time.sleep(0.3 * self.global_delay_factor)
self.clear_buffer()
Classes
class PluribusSSH (*args: Any, **kwargs: Any)
-
Common methods for Pluribus.
Expand source code
class PluribusSSH(NoConfig, BaseConnection): """Common methods for Pluribus.""" def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) self._config_mode = False def session_preparation(self) -> None: """Prepare the netmiko session.""" self._test_channel_read() self.set_base_prompt() self.disable_paging() # Clear the read buffer time.sleep(0.3 * self.global_delay_factor) self.clear_buffer()
Ancestors
Methods
def session_preparation(self) ‑> None
-
Prepare the netmiko session.
Expand source code
def session_preparation(self) -> None: """Prepare the netmiko session.""" self._test_channel_read() self.set_base_prompt() self.disable_paging() # Clear the read buffer time.sleep(0.3 * self.global_delay_factor) self.clear_buffer()
Inherited members
BaseConnection
:check_config_mode
check_enable_mode
cleanup
clear_buffer
commit
config_mode
disable_paging
disconnect
enable
establish_connection
exit_config_mode
exit_enable_mode
find_prompt
is_alive
normalize_cmd
normalize_linefeeds
paramiko_cleanup
read_channel
read_channel_timing
read_until_pattern
read_until_prompt
read_until_prompt_or_pattern
run_ttp
save_config
select_delay_factor
send_command
send_command_expect
send_command_timing
send_config_from_file
send_config_set
send_multiline
set_base_prompt
set_terminal_width
special_login_handler
strip_ansi_escape_codes
strip_backspaces
strip_command
strip_prompt
telnet_login
write_channel