mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
test_l3_longevity.py : need to keep track if the mac is found
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -654,6 +654,8 @@ class L3VariableTime(Realm):
|
||||
endps = []
|
||||
ap_row = []
|
||||
ap_stats_col_titles = []
|
||||
mac_found_5g = False
|
||||
mac_found_2g = False
|
||||
|
||||
while cur_time < end_time:
|
||||
#interval_time = cur_time + datetime.timedelta(seconds=5)
|
||||
@@ -712,7 +714,7 @@ class L3VariableTime(Realm):
|
||||
pprint(response)
|
||||
else:
|
||||
# print("response".format(response))
|
||||
# pprint(response)
|
||||
pprint(response)
|
||||
p = response['interface']
|
||||
#print("#### From LANforge: p, response['insterface']:{}".format(p))
|
||||
mac = p['mac']
|
||||
@@ -726,15 +728,19 @@ class L3VariableTime(Realm):
|
||||
if self.ap_test_mode:
|
||||
if split_row[0].lower() != mac.lower():
|
||||
ap_row = split_row
|
||||
mac_found_5g = True
|
||||
else:
|
||||
try:
|
||||
# split_row[0].lower() , mac from AP
|
||||
# mac.lower() , mac from LANforge
|
||||
if split_row[0].lower() == mac.lower():
|
||||
ap_row = split_row
|
||||
mac_found_5g = True
|
||||
except:
|
||||
print(" 'No stations are currently associated.'? from AP")
|
||||
print(" since possibly no stations: excption on compare split_row[0].lower() ")
|
||||
if mac_found_5g == True:
|
||||
mac_found_5g = False
|
||||
print("selected ap_row (from split_row): {}".format(ap_row))
|
||||
|
||||
# Find latency, jitter for connections using this port.
|
||||
@@ -808,7 +814,7 @@ class L3VariableTime(Realm):
|
||||
pprint(response)
|
||||
else:
|
||||
# print("response".format(response))
|
||||
# pprint(response)
|
||||
pprint(response)
|
||||
p = response['interface']
|
||||
#print("#### From LANforge: p, response['insterface']:{}".format(p))
|
||||
mac = p['mac']
|
||||
@@ -822,15 +828,19 @@ class L3VariableTime(Realm):
|
||||
if self.ap_test_mode:
|
||||
if split_row[0].lower() != mac.lower():
|
||||
ap_row = split_row
|
||||
mac_found_2g = True
|
||||
else:
|
||||
try:
|
||||
# split_row[0].lower() , mac from AP
|
||||
# mac.lower() , mac from LANforge
|
||||
if split_row[0].lower() == mac.lower():
|
||||
ap_row = split_row
|
||||
mac_found_2g = True
|
||||
except:
|
||||
print(" 'No stations are currently associated.'? from AP")
|
||||
print(" since possibly no stations: excption on compare split_row[0].lower() ")
|
||||
if mac_found_2g == True:
|
||||
mac_found_2g = False
|
||||
print("selected ap_row (from split_row): {}".format(ap_row))
|
||||
|
||||
# Find latency, jitter for connections using this port.
|
||||
|
||||
Reference in New Issue
Block a user