From 60a095decd0c588994c1cc916ab602076703b1f4 Mon Sep 17 00:00:00 2001 From: Jason Pack Date: Tue, 24 Jan 2017 13:15:56 -0500 Subject: [PATCH] Add port option to proxy Added port parameter to junos device proxy --- salt/proxy/junos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/proxy/junos.py b/salt/proxy/junos.py index cf6863cb92..4f68c00f75 100644 --- a/salt/proxy/junos.py +++ b/salt/proxy/junos.py @@ -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)