mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
removes network os guess static method (#19467)
For devices that do not support mutliplexing, we cannot automatically determine the network os. This removes the os guess static method from the terminal plugin. For this devices, the network_os value must be configured
This commit is contained in:
@@ -80,9 +80,3 @@ class TerminalModule(TerminalBase):
|
||||
self._exec_cli_command('disable')
|
||||
|
||||
|
||||
@staticmethod
|
||||
def guess_network_os(conn):
|
||||
stdin, stdout, stderr = conn.exec_command('show version')
|
||||
if 'Cisco IOS Software' in stdout.read():
|
||||
return 'ios'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user