Commit b6368001 authored by Costas Drogos's avatar Costas Drogos Committed by Michele Tartara
Browse files

Don't attemp ipv6 ssh in case of ipv4 cluster



In case of a cluster with primary-ip-version=4, there is no need
for cluster to try ipv6 ssh connections which may timeout.
So append '-4' on ssh if cluster is ipv4-only
Signed-off-by: default avatarCostas Drogos <costas.drogos@gmail.com>
Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent 4a68b28b
......@@ -183,6 +183,8 @@ class SshRunner:
if self.ipv6:
options.append("-6")
else:
options.append("-4")
return options
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment