suites/4g: Wait for IP addr received before trying to use the link
Otherwise processes using the link like "ping" or "iperf3" may fail because there's still no IP address assigned. Change-Id: I28137f10a19db01fe90b24830a60342a448d1e92
This commit is contained in:
parent
a4bb6d315b
commit
57e37f95e1
|
@ -46,7 +46,7 @@ iperf3srv.start()
|
||||||
proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_UL, ue.netns(), duration + 30)
|
proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_UL, ue.netns(), duration + 30)
|
||||||
|
|
||||||
print('waiting for UE to attach...')
|
print('waiting for UE to attach...')
|
||||||
wait(ue.is_rrc_connected)
|
wait(ue.is_registered)
|
||||||
print('UE is attached')
|
print('UE is attached')
|
||||||
|
|
||||||
rfemu_cell1 = enb.get_rfemu(0)
|
rfemu_cell1 = enb.get_rfemu(0)
|
||||||
|
|
|
@ -26,7 +26,7 @@ iperf3srv.start()
|
||||||
proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_DL, ue.netns(), bitrate=max_rate)
|
proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_DL, ue.netns(), bitrate=max_rate)
|
||||||
|
|
||||||
print('waiting for UE to attach...')
|
print('waiting for UE to attach...')
|
||||||
wait(ue.is_rrc_connected)
|
wait(ue.is_registered)
|
||||||
print('UE is attached')
|
print('UE is attached')
|
||||||
|
|
||||||
print("Running iperf3 client to %s through %s" % (str(iperf3cli), ue.netns()))
|
print("Running iperf3 client to %s through %s" % (str(iperf3cli), ue.netns()))
|
||||||
|
|
|
@ -26,7 +26,7 @@ iperf3srv.start()
|
||||||
proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_UL, ue.netns(), bitrate=max_rate)
|
proc = iperf3cli.prepare_test_proc(iperf3cli.DIR_UL, ue.netns(), bitrate=max_rate)
|
||||||
|
|
||||||
print('waiting for UE to attach...')
|
print('waiting for UE to attach...')
|
||||||
wait(ue.is_rrc_connected)
|
wait(ue.is_registered)
|
||||||
print('UE is attached')
|
print('UE is attached')
|
||||||
|
|
||||||
print("Running iperf3 client to %s through %s" % (str(iperf3cli), ue.netns()))
|
print("Running iperf3 client to %s through %s" % (str(iperf3cli), ue.netns()))
|
||||||
|
|
|
@ -16,7 +16,7 @@ print('ENB is connected to EPC')
|
||||||
|
|
||||||
ue.connect(enb)
|
ue.connect(enb)
|
||||||
print('waiting for UE to attach...')
|
print('waiting for UE to attach...')
|
||||||
wait(ue.is_rrc_connected)
|
wait(ue.is_registered)
|
||||||
print('UE is attached')
|
print('UE is attached')
|
||||||
|
|
||||||
proc = ue.run_netns_wait('ping', ('ping', '-c', '10', epc.tun_addr()))
|
proc = ue.run_netns_wait('ping', ('ping', '-c', '10', epc.tun_addr()))
|
||||||
|
|
|
@ -16,7 +16,7 @@ print('ENB is connected to EPC')
|
||||||
|
|
||||||
ue.connect(enb)
|
ue.connect(enb)
|
||||||
print('waiting for UE to attach...')
|
print('waiting for UE to attach...')
|
||||||
wait(ue.is_rrc_connected)
|
wait(ue.is_registered)
|
||||||
print('UE is RRC connected')
|
print('UE is RRC connected')
|
||||||
|
|
||||||
print('waiting until RRC connection gets released...')
|
print('waiting until RRC connection gets released...')
|
||||||
|
|
|
@ -16,7 +16,7 @@ print('ENB is connected to EPC')
|
||||||
|
|
||||||
ue.connect(enb)
|
ue.connect(enb)
|
||||||
print('waiting for UE to attach...')
|
print('waiting for UE to attach...')
|
||||||
wait(ue.is_rrc_connected)
|
wait(ue.is_registered)
|
||||||
print('UE is RRC connected')
|
print('UE is RRC connected')
|
||||||
|
|
||||||
print('waiting until RRC connection gets released...')
|
print('waiting until RRC connection gets released...')
|
||||||
|
|
Loading…
Reference in New Issue