Skip to content

Commit

Permalink
add optional proxycmd
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Feb 16, 2017
1 parent 0caec87 commit 81ef189
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions netconf/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def reader_handle_message (self, msg):


class NetconfSSHSession (NetconfClientSession):
def __init__ (self, host, port=830, username=None, password=None, debug=False, cache=None):
def __init__ (self, host, port=830, username=None, password=None, debug=False, cache=None, proxycmd=None):
if username is None:
import getpass
username = getpass.getuser()
Expand All @@ -198,7 +198,8 @@ def __init__ (self, host, port=830, username=None, password=None, debug=False, c
username,
password,
debug,
cache=cache)
cache=cache,
proxycmd=proxycmd)
super(NetconfSSHSession, self).__init__(stream, debug)


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
required = [
"lxml>=3.1.0",
"paramiko>=1.10.1",
"sshutil>=1.0.2",
"sshutil>=1.1.0",
]
if sys.platform == 'win32' and sys.version_info < (3, 5):
required.append("backports.socketpair>=3.5.0.2")
Expand All @@ -33,7 +33,7 @@ def read(fname):


setup (name='netconf',
version='0.4.3',
version='0.5.0',
description='Netconf Client/Server Library',
long_description=read("README.rst"),
author='Christian E. Hopps',
Expand Down

0 comments on commit 81ef189

Please sign in to comment.