Avoid ssh connections to network controller in test mode 94/1094/1
authormirabal <leonardo.mirabal@altran.com>
Fri, 10 Feb 2017 11:09:20 +0000 (12:09 +0100)
committermirabal <leonardo.mirabal@altran.com>
Fri, 10 Feb 2017 11:38:40 +0000 (12:38 +0100)
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
httpserver.py

index 777bd22..ca47b6d 100644 (file)
@@ -684,7 +684,8 @@ def get_dhcp_controller():
                                develop_bridge_iface=bridge_ifaces)
 
     config_dic['host_threads']['openvim_controller'] = dhcp_host
-    dhcp_host.ssh_connect()
+    if not host_test_mode:
+        dhcp_host.ssh_connect()
     return dhcp_host