module Netconf::Junos::TransSerial

Public Instance Methods

trans_start_netconf( last_console ) click to toggle source
# File lib/net/netconf/jnpr/serial.rb, line 8
def trans_start_netconf( last_console )
  last_console.match(/[^%]\s+$/)
  netconf_cmd = ($1 == '%') ? Netconf::Junos::NETCONF_SHELL : Netconf::Junos::NETCONF_CLI
  puts netconf_cmd
end