mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 12:18:00 +00:00
test_ip_variable_time: wait_for_ip needs to have debug match that of test_ip_variable_time
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -51,7 +51,6 @@ class IPVariableTime(Realm):
|
||||
use_existing_sta=False,
|
||||
name_prefix=None,
|
||||
upstream=None,
|
||||
upstream_resource=1,
|
||||
radio=None,
|
||||
host="localhost",
|
||||
port=8080,
|
||||
@@ -100,8 +99,6 @@ class IPVariableTime(Realm):
|
||||
self.traffic_type = traffic_type
|
||||
self.number_template = number_template
|
||||
self.debug = _debug_on
|
||||
self.timeout_sec = 60
|
||||
self.upstream_resource = upstream_resource
|
||||
# self.json_post("/cli-json/set_resource", {
|
||||
# "shelf":1,
|
||||
# "resource":all,
|
||||
@@ -168,11 +165,11 @@ class IPVariableTime(Realm):
|
||||
self.station_profile.admin_up()
|
||||
temp_stas = self.station_profile.station_names.copy()
|
||||
print("temp_stas {temp_stas}".format(temp_stas=temp_stas))
|
||||
if self.wait_for_ip(temp_stas, ipv4=not self.ipv6, ipv6=self.ipv6, timeout_sec=self.timeout_sec):
|
||||
if self.wait_for_ip(temp_stas, ipv4=not self.ipv6, ipv6=self.ipv6, debug=self.debug):
|
||||
self._pass("All stations got IPs")
|
||||
else:
|
||||
self._fail("Stations failed to get IPs")
|
||||
#self.exit_fail()
|
||||
self.exit_fail()
|
||||
self.cx_profile.start_cx()
|
||||
|
||||
def stop(self):
|
||||
@@ -207,8 +204,9 @@ class IPVariableTime(Realm):
|
||||
print("Creating stations")
|
||||
self.station_profile.create(radio=self.radio, sta_names_=self.sta_list, debug=self.debug)
|
||||
self._pass("PASS: Station build finished")
|
||||
|
||||
self.cx_profile.create(endp_type=self.traffic_type, side_a=self.sta_list,
|
||||
side_b="%d.%s" % (int(self.upstream_resource), self.upstream),
|
||||
side_b=self.upstream,
|
||||
sleep_time=0)
|
||||
|
||||
def run(self):
|
||||
|
||||
Reference in New Issue
Block a user