Explorar o código

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

Jeremy Stretch %!s(int64=10) %!d(string=hai) anos
pai
achega
f48266dc83
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/extras/rpc.py

+ 1 - 1
netbox/extras/rpc.py

@@ -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")