Module: Netconf::Junos::TransSerial

Defined in:
lib/net/netconf/jnpr/serial.rb

Instance Method Summary collapse

Instance Method Details

#trans_start_netconf(last_console) ⇒ Object


8
9
10
11
12
# 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