@ -347,7 +347,7 @@ def ping_run(host, ip, result, ifname=None, addr_type="ipv4", deadline="5", qos=
def ping_wait ( host , thread , timeout = None ) :
def ping_wait ( host , thread , timeout = None ) :
host . thread_wait ( thread , timeout )
host . thread_wait ( thread , timeout )
if thread . is A live( ) :
if thread . is _a live( ) :
raise Exception ( " ping thread still alive " )
raise Exception ( " ping thread still alive " )
def flush_arp_cache ( host ) :
def flush_arp_cache ( host ) :
@ -504,16 +504,16 @@ def iperf_run(server, client, server_ip, client_res, server_res,
def iperf_wait ( server , client , server_thread , client_thread , timeout = None , iperf = " iperf " ) :
def iperf_wait ( server , client , server_thread , client_thread , timeout = None , iperf = " iperf " ) :
client . thread_wait ( client_thread , timeout )
client . thread_wait ( client_thread , timeout )
if client_thread . is A live( ) :
if client_thread . is _a live( ) :
raise Exception ( " iperf client thread still alive " )
raise Exception ( " iperf client thread still alive " )
server . thread_wait ( server_thread , 5 )
server . thread_wait ( server_thread , 5 )
if server_thread . is A live( ) :
if server_thread . is _a live( ) :
server . execute ( [ " killall " , " -s " , " INT " , iperf ] )
server . execute ( [ " killall " , " -s " , " INT " , iperf ] )
time . sleep ( 1 )
time . sleep ( 1 )
server . thread_wait ( server_thread , 5 )
server . thread_wait ( server_thread , 5 )
if server_thread . is A live( ) :
if server_thread . is _a live( ) :
raise Exception ( " iperf server thread still alive " )
raise Exception ( " iperf server thread still alive " )
return
return