Skip to content

Commit

Permalink
Merge pull request #878 from ktbyers/develop
Browse files Browse the repository at this point in the history
Release Version 2.2.2
  • Loading branch information
ktbyers authored Jul 19, 2018
2 parents 7ded3a2 + bf1cf69 commit fcd7a92
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 32 deletions.
24 changes: 3 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Cisco IOS-XE
Cisco IOS-XR
Cisco NX-OS
Cisco SG300
Dell OS10
HP Comware7
HP ProCurve
Juniper Junos
Expand All @@ -36,12 +35,14 @@ Linux
###### Limited testing

Alcatel AOS6/AOS8
Apresia Systems AEOS
Avaya ERS
Avaya VSP
Brocade VDX
Brocade MLX/NetIron
Calix B6
Cisco WLC
Dell OS10
Dell-Force10
Dell PowerConnect
Huawei
Expand All @@ -63,7 +64,7 @@ Citrix Netscaler
Cisco Telepresence
Check Point GAiA
Coriant
Dell Isilon
Dell EMC Isilon
Eltex
Enterasys
Extreme EXOS
Expand Down Expand Up @@ -130,25 +131,6 @@ FastEthernet4 10.10.10.10 YES manual up up
Vlan1 unassigned YES unset down down
```

#### For long-running commands, use `send_command_expect()`

`send_command_expect` waits for the trailing prompt (or for an optional pattern)
```py
net_connect.send_command_expect('write memory')
```

```
Building configuration...
[OK]
```

#### Enter and exit enable mode.

```py
net_connect.enable()
net_connect.exit_enable_mode()
```

#### Execute configuration change commands (will automatically enter into config mode)

```py
Expand Down
2 changes: 1 addition & 1 deletion netmiko/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
NetmikoAuthError = NetMikoAuthenticationException
Netmiko = ConnectHandler

__version__ = '2.2.0'
__version__ = '2.2.2'
__all__ = ('ConnectHandler', 'ssh_dispatcher', 'platforms', 'SCPConn', 'FileTransfer',
'NetMikoTimeoutException', 'NetMikoAuthenticationException',
'NetmikoTimeoutError', 'NetmikoAuthError', 'InLineTransfer', 'redispatch',
Expand Down
7 changes: 4 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pytest>=3.2.5
pylama
tox
pytest==2.9.1
pylama==7.4.3
tox==2.5.0
twine==1.11.0
pysnmp
-r requirements.txt
29 changes: 22 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
from setuptools import find_packages
import os
import re
import sys


requirements = [
'paramiko>=2.0.0',
'scp>=0.10.0',
'pyyaml',
'pyserial',
'textfsm',
]

# Cryptography library makes this necessary as older versions of PIP (PIP7 and less)
# will not auto_install enum34 from extras_require.
if sys.version_info < (3,):
requirements.append("enum34")
requirements.append("ipaddress")

with open("README.md", "r") as fs:
long_description = fs.read()


def find_version(*file_paths):
Expand All @@ -26,6 +45,8 @@ def find_version(*file_paths):
name='netmiko',
version=find_version('netmiko', '__init__.py'),
description='Multi-vendor library to simplify Paramiko SSH connections to network devices',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/ktbyers/netmiko',
author='Kirk Byers',
author_email='[email protected]',
Expand All @@ -40,13 +61,7 @@ def find_version(*file_paths):
'Programming Language :: Python :: 3.6',
],
packages=find_packages(exclude=("test*", )),
install_requires=[
'paramiko>=2.0.0',
'scp>=0.10.0',
'pyyaml',
'pyserial',
'textfsm'
],
install_requires=requirements,
extras_require={
'test': ['pytest>=3.2.5', ]
},
Expand Down

0 comments on commit fcd7a92

Please sign in to comment.