Sindbad~EG File Manager

Current Path : /opt/imh-python/lib/python3.9/site-packages/netmiko/dell/
Upload File :
Current File : //opt/imh-python/lib/python3.9/site-packages/netmiko/dell/dell_dnos6.py

"""Dell N2/3/4000 base driver- supports DNOS6."""
from netmiko.dell.dell_powerconnect import DellPowerConnectBase
import time


class DellDNOS6Base(DellPowerConnectBase):
    def session_preparation(self):
        """Prepare the session after the connection has been established."""
        self.ansi_escape_codes = True
        self._test_channel_read()
        self.set_base_prompt()
        self.enable()
        self.set_terminal_width()
        self.disable_paging(command="terminal length 0")
        # Clear the read buffer
        time.sleep(0.3 * self.global_delay_factor)
        self.clear_buffer()

    def save_config(
        self,
        cmd="copy running-configuration startup-configuration",
        confirm=False,
        confirm_response="",
    ):
        """Saves Config"""
        return super().save_config(
            cmd=cmd, confirm=confirm, confirm_response=confirm_response
        )


class DellDNOS6SSH(DellDNOS6Base):
    pass


class DellDNOS6Telnet(DellDNOS6Base):
    pass

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists