module Netconf::Junos::TransTelnet

Public Instance Methods

trans_login() click to toggle source
# File lib/net/netconf/jnpr/telnet.rb, line 9
def trans_login
  l_rsp = @trans.login( @args[:username], @args[:password] )
  # @@@/JLS: need to rescue the timeout ... ???
  l_rsp.match("([>%])\s+$")
  @exec_netconf = ($1 == '%') ? Netconf::Junos::NETCONF_SHELL : Netconf::Junos::NETCONF_CLI
end
trans_start_netconf() click to toggle source
# File lib/net/netconf/jnpr/telnet.rb, line 16
def trans_start_netconf
  @trans.puts @exec_netconf
end