1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Changed IOS RPC client to use authenticate() instead of login() for compatability with IOS 15

This commit is contained in:
Jeremy Stretch
2016-04-29 12:20:47 -04:00
parent d4d381d4fb
commit f48266dc83

View File

@ -140,7 +140,7 @@ class IOSSSH(RPCClient):
# Initiate a connection to the device
self.ssh = SSH2(connect_timeout=CONNECT_TIMEOUT)
self.ssh.connect(self.host)
self.ssh.login(Account(self.username, self.password))
self.ssh.authenticate(Account(self.username, self.password))
# Disable terminal paging
self.ssh.execute("terminal length 0")