File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1919 if is_docker
2020 require 'net/netconf/jnpr'
2121 # NETCONF_USER refers to the login username configured for puppet operations
22- login = { target : 'localhost' , username : ENV [ 'NETCONF_USER' ] }
22+ login = { :target => 'localhost' , :username => ENV [ 'NETCONF_USER' ] ,
23+ :port => ENV [ 'NETCONF_PORT' ] ? ENV [ 'NETCONF_PORT' ] . to_i : 22 }
2324 @netconf = Netconf ::SSH . new ( login )
2425 # Else, open an IOProc session
2526 else
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ def initialize( catalog_version )
2323
2424 if is_docker
2525 # NETCONF_USER refers to the login username configured for puppet operations
26- login = { target : 'localhost' , username : ENV [ 'NETCONF_USER' ] }
26+ login = { :target => 'localhost' , :username => ENV [ 'NETCONF_USER' ] ,
27+ :port => ENV [ 'NETCONF_PORT' ] ? ENV [ 'NETCONF_PORT' ] . to_i : 22 }
2728 @netconf = Netconf ::SSH . new ( login )
2829 NetdevJunos ::Log . debug "Opening a SSH connection from docker container: #{ is_docker } "
2930 else
You can’t perform that action at this time.
0 commit comments