diff --git a/netmiko/dell/__init__.py b/netmiko/dell/__init__.py new file mode 100644 index 000000000..8bb974ccc --- /dev/null +++ b/netmiko/dell/__init__.py @@ -0,0 +1,3 @@ +from netmiko.dell.dell_force10_ssh import DellForce10SSH + +__all__ = ['DellForce10SSH'] diff --git a/netmiko/dell/dell_force10_ssh.py b/netmiko/dell/dell_force10_ssh.py new file mode 100644 index 000000000..ab5b6f370 --- /dev/null +++ b/netmiko/dell/dell_force10_ssh.py @@ -0,0 +1,15 @@ +''' +Dell Force10 Driver - supports DNOS9 +''' +from netmiko.ssh_connection import SSHConnection + +class DellForce10SSH(SSHConnection): + ''' + Dell Force10 Driver - supports DNOS9 + ''' + def cleanup(self): + ''' + Gracefully exit the SSH session. + ''' + self.exit_config_mode() + self.remote_conn.sendall("exit\n") diff --git a/netmiko/ssh_dispatcher.py b/netmiko/ssh_dispatcher.py index 242968c40..ff784d46a 100644 --- a/netmiko/ssh_dispatcher.py +++ b/netmiko/ssh_dispatcher.py @@ -22,6 +22,7 @@ from netmiko.enterasys import EnterasysSSH from netmiko.extreme import ExtremeSSH from netmiko.alcatel import AlcatelSrosSSH +from netmiko.dell import DellForce10SSH # The keys of this dictionary are the supported device_types CLASS_MAPPER = { @@ -47,6 +48,7 @@ 'extreme': ExtremeSSH, 'alcatel_sros': AlcatelSrosSSH, 'fortinet': FortinetSSH, + 'dell_force10': DellForce10SSH, } platforms = list(CLASS_MAPPER.keys()) diff --git a/setup.py b/setup.py index 390e725cd..110d71970 100644 --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ def find_version(*file_paths): 'netmiko/enterasys', 'netmiko/extreme', 'netmiko/alcatel', + 'netmiko/dell', 'netmiko/avaya'], install_requires=['paramiko>=1.13.0', 'scp>=0.10.0'], extras_require={