X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=dhcp_thread.py;h=f4823342d7e27c13bcd9539f1ffcef831b614f04;hb=refs%2Fchanges%2F05%2F1505%2F1;hp=a24585eefb33062536aa7a60eb2f91c63d858dbb;hpb=f7aa8c4db7a57d5865d3b7767d5957fda6867198;p=osm%2Fopenvim.git diff --git a/dhcp_thread.py b/dhcp_thread.py index a24585e..f482334 100644 --- a/dhcp_thread.py +++ b/dhcp_thread.py @@ -2,7 +2,7 @@ ## # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U. -# This file is part of openmano +# This file is part of openvim # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may @@ -76,7 +76,7 @@ class dhcp_thread(threading.Thread): self.ssh_conn.set_missing_host_key_policy(paramiko.AutoAddPolicy()) self.ssh_conn.load_system_host_keys() self.ssh_conn.connect(self.dhcp_params["host"], port=self.dhcp_params.get("port",22), - username=self.dhcp_params["user"], password=self.dhcp_params.get("password"), pkey=self.dhcp_params.get("key"), + username=self.dhcp_params["user"], password=self.dhcp_params.get("password"), key_filename=self.dhcp_params.get("key"), timeout=2) except paramiko.ssh_exception.SSHException as e: text = e.args[0]