|
|
@ -302,6 +302,9 @@ class Connection(NetworkConnectionBase):
|
|
|
|
logging.getLogger('paramiko').setLevel(logging.DEBUG)
|
|
|
|
logging.getLogger('paramiko').setLevel(logging.DEBUG)
|
|
|
|
|
|
|
|
|
|
|
|
if self._network_os:
|
|
|
|
if self._network_os:
|
|
|
|
|
|
|
|
self._terminal = terminal_loader.get(self._network_os, self)
|
|
|
|
|
|
|
|
if not self._terminal:
|
|
|
|
|
|
|
|
raise AnsibleConnectionFailure('network os %s is not supported' % self._network_os)
|
|
|
|
|
|
|
|
|
|
|
|
self.cliconf = cliconf_loader.get(self._network_os, self)
|
|
|
|
self.cliconf = cliconf_loader.get(self._network_os, self)
|
|
|
|
if self.cliconf:
|
|
|
|
if self.cliconf:
|
|
|
@ -391,10 +394,6 @@ class Connection(NetworkConnectionBase):
|
|
|
|
self._ssh_shell = ssh.ssh.invoke_shell()
|
|
|
|
self._ssh_shell = ssh.ssh.invoke_shell()
|
|
|
|
self._ssh_shell.settimeout(self.get_option('persistent_command_timeout'))
|
|
|
|
self._ssh_shell.settimeout(self.get_option('persistent_command_timeout'))
|
|
|
|
|
|
|
|
|
|
|
|
self._terminal = terminal_loader.get(self._network_os, self)
|
|
|
|
|
|
|
|
if not self._terminal:
|
|
|
|
|
|
|
|
raise AnsibleConnectionFailure('network os %s is not supported' % self._network_os)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.queue_message('vvvv', 'loaded terminal plugin for network_os %s' % self._network_os)
|
|
|
|
self.queue_message('vvvv', 'loaded terminal plugin for network_os %s' % self._network_os)
|
|
|
|
|
|
|
|
|
|
|
|
terminal_initial_prompt = self.get_option('terminal_initial_prompt') or self._terminal.terminal_initial_prompt
|
|
|
|
terminal_initial_prompt = self.get_option('terminal_initial_prompt') or self._terminal.terminal_initial_prompt
|
|
|
|