Add port option to proxy

Added port parameter to junos device proxy
This commit is contained in:
Jason Pack 2017-01-24 13:15:56 -05:00 committed by GitHub
parent 0e102da679
commit 60a095decd

View File

@ -47,7 +47,8 @@ def init(opts):
log.debug('Opening connection to junos')
thisproxy['conn'] = jnpr.junos.Device(user=opts['proxy']['username'],
host=opts['proxy']['host'],
password=opts['proxy']['passwd'])
password=opts['proxy']['passwd'],
port=opts['proxy']['port'])
thisproxy['conn'].open()
thisproxy['conn'].bind(cu=jnpr.junos.utils.config.Config)
thisproxy['conn'].bind(sw=jnpr.junos.utils.sw.SW)