mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Cleaned up run function
This commit is contained in:
@@ -71,9 +71,12 @@ class IPv4Test(LFCliBase):
|
|||||||
|
|
||||||
self.profile.use_wpa2(True, self.ssid, self.password)
|
self.profile.use_wpa2(True, self.ssid, self.password)
|
||||||
self.profile.set_prefix(self.prefix)
|
self.profile.set_prefix(self.prefix)
|
||||||
|
print("Creating stations")
|
||||||
self.profile.create(resource=1, radio="wiphy0", num_stations=self.num_stations)
|
self.profile.create(resource=1, radio="wiphy0", num_stations=self.num_stations)
|
||||||
|
|
||||||
for sta_name in list(self.local_realm.find_ports_like("sta[%s..%s]" % (self.prefix[:-1], str(self.prefix[:-2]) + str(self.num_stations - 1)))):
|
for sta_name in list(self.local_realm.find_ports_like("sta[%s..%s]" % (self.prefix[:-1], str(self.prefix[:-2]) + str(self.num_stations - 1)))):
|
||||||
sta_list.append(self.local_realm.name_to_eid(sta_name)[2])
|
sta_list.append(self.local_realm.name_to_eid(sta_name)[2])
|
||||||
|
|
||||||
print(sta_list)
|
print(sta_list)
|
||||||
time.sleep(self.timeout)
|
time.sleep(self.timeout)
|
||||||
self.run_test(sta_list, True, True)
|
self.run_test(sta_list, True, True)
|
||||||
|
|||||||
Reference in New Issue
Block a user