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:
Chuck SmileyRekiere
2021-07-22 16:24:57 -06:00
parent 95f3c2febf
commit feb8594abd

View File

@@ -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.