mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 23:43:20 +02:00
test: debug gh action
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+2
-1
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user