Module netmiko.pluribus.pluribus_ssh
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() def disable_paging( self, command: str = "pager off", delay_factor: Optional[float] = None, cmd_verify: bool = True, pattern: Optional[str] = None, ) -> str: """Disable paging on Pluribus devices. :param command: Command to disable pagination of output :param delay_factor: Deprecated in Netmiko 4.x. Will be eliminated in Netmiko 5. :param cmd_verify: Verify command echo before proceeding :param pattern: Pattern to terminate reading of channel """ return super().disable_paging( command=command, delay_factor=delay_factor, cmd_verify=cmd_verify, pattern=pattern, )Ancestors
Methods
def disable_paging(self, command: str = 'pager off', delay_factor: Optional[float] = None, cmd_verify: bool = True, pattern: Optional[str] = None) ‑> str-
Disable paging on Pluribus devices.
:param command: Command to disable pagination of output :param delay_factor: Deprecated in Netmiko 4.x. Will be eliminated in Netmiko 5. :param cmd_verify: Verify command echo before proceeding :param pattern: Pattern to terminate reading of channel
def session_preparation(self) ‑> None-
Prepare the netmiko session.
Inherited members
BaseConnection:check_config_modecheck_enable_modecleanupclear_buffercommitconfig_modedisconnectenableestablish_connectionexit_config_modeexit_enable_modefind_promptis_alivenormalize_cmdnormalize_linefeedsparamiko_cleanupread_channelread_channel_timingread_until_patternread_until_promptread_until_prompt_or_patternrun_ttpsave_configselect_delay_factorsend_commandsend_command_expectsend_command_timingsend_config_from_filesend_config_setsend_multilineset_base_promptset_terminal_widthspecial_login_handlerstrip_ansi_escape_codesstrip_backspacesstrip_commandstrip_prompttelnet_loginwrite_channel