diff --git a/.flask_cache/2029240f6d1128be89ddc32729463129 b/.flask_cache/2029240f6d1128be89ddc32729463129 new file mode 100644 index 0000000..4ed49b8 Binary files /dev/null and b/.flask_cache/2029240f6d1128be89ddc32729463129 differ diff --git a/.flask_cache/657c533712fd34452c34b44cb9a65048 b/.flask_cache/657c533712fd34452c34b44cb9a65048 new file mode 100644 index 0000000..ad5795f Binary files /dev/null and b/.flask_cache/657c533712fd34452c34b44cb9a65048 differ diff --git a/.flask_cache/74bc75c0764cbc805c70645cef1f026b b/.flask_cache/74bc75c0764cbc805c70645cef1f026b new file mode 100644 index 0000000..3d43271 Binary files /dev/null and b/.flask_cache/74bc75c0764cbc805c70645cef1f026b differ diff --git a/hyperglass/command/execute.py b/hyperglass/command/execute.py index 3f7f8c4..2b67017 100644 --- a/hyperglass/command/execute.py +++ b/hyperglass/command/execute.py @@ -116,6 +116,7 @@ def execute(lg_data): "username": matchProxy(router_proxy)[1], "password": matchProxy(router_proxy)[2], "device_type": matchProxy(router_proxy)[3], + "global_delay_factor": 0.5, } nm_connect_proxied = ConnectHandler(**nm_proxy) nm_ssh_command = matchProxy(router_proxy)[4].format(**nm_host) + "\n" @@ -126,12 +127,12 @@ def execute(lg_data): # Accept SSH key warnings if "Are you sure you want to continue connecting" in proxy_output: nm_connect_proxied.write_channel("yes" + "\n") - time.sleep(1) + # time.sleep(1) nm_connect_proxied.write_channel(nm_host["password"] + "\n") # Send password on prompt elif "assword" in proxy_output: nm_connect_proxied.write_channel(nm_host["password"] + "\n") - time.sleep(1) + # time.sleep(1) proxy_output += nm_connect_proxied.read_channel() # Reclassify netmiko connection as configured device type redispatch(nm_connect_proxied, nm_host["device_type"]) @@ -150,6 +151,7 @@ def execute(lg_data): "device_type": type, "username": returnCred(findCred(router))[0], "password": returnCred(findCred(router))[1], + "global_delay_factor": 0.5, } # Loop through router list, determine if proxy exists diff --git a/manage.py b/manage.py old mode 100644 new mode 100755