diff --git a/netmiko/dell/dell_force10_ssh.py b/netmiko/dell/dell_force10_ssh.py index 9ce811f66082410671c30f6eab4b029766adf701..715e7d80e3c372afa8258dbd0e17f45f435407af 100644 --- a/netmiko/dell/dell_force10_ssh.py +++ b/netmiko/dell/dell_force10_ssh.py @@ -5,6 +5,24 @@ from netmiko.cisco_base_connection import CiscoSSHConnection class DellForce10SSH(CiscoSSHConnection): """Dell Force10 Driver - supports DNOS9.""" + def session_preparation(self) -> None: + """Prepare the session after the connection has been established.""" + self._test_channel_read(pattern=r"[>#]") + self.set_base_prompt() + self.set_terminal_width() + self.disable_paging() + + def check_config_mode( + self, + check_string: str = ")#", + pattern: str = r"[>#]", + force_regex: bool = False, + ) -> bool: + """ + Checks if the device is in configuration mode or not. + """ + return super().check_config_mode(check_string=check_string, pattern=pattern) + def save_config( self, cmd: str = "copy running-configuration startup-configuration", diff --git a/netmiko/dell/dell_os10_ssh.py b/netmiko/dell/dell_os10_ssh.py index 4c2ed0d52adf99b8a32dbbda1b48d2547c2ebb3c..e6427eb47f31b5f0413fc367d172124a275a1138 100644 --- a/netmiko/dell/dell_os10_ssh.py +++ b/netmiko/dell/dell_os10_ssh.py @@ -10,6 +10,24 @@ import re class DellOS10SSH(CiscoSSHConnection): """Dell EMC Networking OS10 Driver - supports dellos10.""" + def session_preparation(self) -> None: + """Prepare the session after the connection has been established.""" + self._test_channel_read(pattern=r"[>#]") + self.set_base_prompt() + self.set_terminal_width() + self.disable_paging() + + def check_config_mode( + self, + check_string: str = ")#", + pattern: str = r"[>#]", + force_regex: bool = False, + ) -> bool: + """ + Checks if the device is in configuration mode or not. + """ + return super().check_config_mode(check_string=check_string, pattern=pattern) + def save_config( self, cmd: str = "copy running-configuration startup-configuration",