test: debug gh action

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-06-09 11:54:23 +02:00
parent 6c9735a783
commit 9e5cf13522
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import os
import pydot
import shlex
import sys
import time
from . import neigh, netconf, tap, topology
@@ -90,7 +91,7 @@ class Env(object):
if not mgmtip:
raise Exception(f"Failed, cannot find mgmt IP for {node}")
print(f"Mgmt IP {mgmtip}")
time.sleep(10)
return netconf.Device(
location=netconf.Location(mgmtip),
mapping=mapping,
+1
View File
@@ -44,6 +44,7 @@ class Device(object):
0, 0, socket.SOL_TCP)
sock = socket.socket(ai[0][0], ai[0][1], 0)
sock.settimeout(60)
print(f"Connecting to mgmt IP {location.host}:{location.port} ...")
sock.connect(ai[0][4])
sock.settimeout(None)