Skip to content

Commit

Permalink
Adding dell-force10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Jan 17, 2016
1 parent a802a8a commit 34937ce
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netmiko/dell/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from netmiko.dell.dell_force10_ssh import DellForce10SSH

__all__ = ['DellForce10SSH']
15 changes: 15 additions & 0 deletions netmiko/dell/dell_force10_ssh.py
Original file line number Diff line number Diff line change
@@ -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")
2 changes: 2 additions & 0 deletions netmiko/ssh_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -47,6 +48,7 @@
'extreme': ExtremeSSH,
'alcatel_sros': AlcatelSrosSSH,
'fortinet': FortinetSSH,
'dell_force10': DellForce10SSH,
}

platforms = list(CLASS_MAPPER.keys())
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down

0 comments on commit 34937ce

Please sign in to comment.