mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
added wait_for_ip to verify stations get IP
This commit is contained in:
@@ -52,9 +52,12 @@ class IPv4Test(LFCliBase):
|
||||
self.station_profile.set_command_flag("set_port", "rpt_timer", 1)
|
||||
self.station_profile.create(radio=self.radio, sta_names_=self.sta_list, debug=self.debug)
|
||||
self.station_profile.admin_up()
|
||||
time.sleep(15)
|
||||
self._pass("Station build finished", print_=True)
|
||||
exit(0)
|
||||
if self.local_realm.wait_for_ip(station_list=self.sta_list, debug=self.debug, timeout_sec=30):
|
||||
self._pass("Station build finished", print_=True)
|
||||
exit(0)
|
||||
else:
|
||||
self._fail("Stations not able to acquire IP. Please check network input.", print_=True)
|
||||
exit(1)
|
||||
|
||||
def cleanup(self, sta_list):
|
||||
self.station_profile.cleanup(sta_list)
|
||||
|
||||
Reference in New Issue
Block a user