test_l3_longevity.py : changed port_data variable from p -> port_data

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2021-11-24 08:50:55 -07:00
parent 3157b938b0
commit b8a644895e

View File

@@ -1155,11 +1155,11 @@ class L3VariableTime(Realm):
else: else:
# print("response".format(response)) # print("response".format(response))
pprint(response) pprint(response)
p = response['interface'] port_data = response['interface']
print( print(
"#### 6g From LANforge: p, response['insterface']:{}".format(p)) "#### 6g From LANforge: port_data, response['insterface']:{}".format(p))
mac = p['mac'] mac = port_data['mac']
# print("#### From LANforge: p['mac']: # print("#### From LANforge: port_data['mac']:
# {mac}".format(mac=mac)) # {mac}".format(mac=mac))
# Parse the ap stats to find the matching # Parse the ap stats to find the matching
@@ -1260,11 +1260,11 @@ class L3VariableTime(Realm):
else: else:
# print("response".format(response)) # print("response".format(response))
pprint(response) pprint(response)
p = response['interface'] port_data = response['interface']
print( print(
"#### 6g From LANforge: p, response['insterface']:{}".format(p)) "#### 6g From LANforge: port_data, response['insterface']:{}".format(p))
mac = p['mac'] mac = port_data['mac']
# print("#### From LANforge: p['mac']: # print("#### From LANforge: port_data['mac']:
# {mac}".format(mac=mac)) # {mac}".format(mac=mac))
# Parse the ap stats to find the matching # Parse the ap stats to find the matching
@@ -1314,7 +1314,7 @@ class L3VariableTime(Realm):
dl_pdu_str, dl_pdu_str,
atten_val, atten_val,
eid_name, eid_name,
p, port_data,
latency, latency,
jitter, jitter,
total_ul_rate, total_ul_rate,
@@ -1370,11 +1370,11 @@ class L3VariableTime(Realm):
else: else:
# print("response".format(response)) # print("response".format(response))
pprint(response) pprint(response)
p = response['interface'] port_data = response['interface']
print( print(
"#### From LANforge: p, response['insterface']:{}".format(p)) "#### From LANforge: port_data, response['insterface']:{}".format(p))
mac = p['mac'] mac = port_data['mac']
# print("#### From LANforge: p['mac']: # print("#### From LANforge: port_data['mac']:
# {mac}".format(mac=mac)) # {mac}".format(mac=mac))
# Parse the ap stats to find the matching # Parse the ap stats to find the matching
@@ -1473,7 +1473,7 @@ class L3VariableTime(Realm):
dl_pdu_str, dl_pdu_str,
atten_val, atten_val,
eid_name, eid_name,
p, port_data,
latency, latency,
jitter, jitter,
total_ul_rate, total_ul_rate,
@@ -1500,11 +1500,11 @@ class L3VariableTime(Realm):
else: else:
# print("response".format(response)) # print("response".format(response))
pprint(response) pprint(response)
p = response['interface'] port_data = response['interface']
print( print(
"#### 5g From LANforge: p, response['insterface']:{}".format(p)) "#### 5g From LANforge: port_data, response['insterface']:{}".format(p))
mac = p['mac'] mac = port_data['mac']
# print("#### From LANforge: p['mac']: # print("#### From LANforge: port_data['mac']:
# {mac}".format(mac=mac)) # {mac}".format(mac=mac))
# Parse the ap stats to find the matching # Parse the ap stats to find the matching
@@ -1553,7 +1553,7 @@ class L3VariableTime(Realm):
dl_pdu_str, dl_pdu_str,
atten_val, atten_val,
eid_name, eid_name,
p, port_data,
latency, latency,
jitter, jitter,
total_ul_rate, total_ul_rate,
@@ -1609,11 +1609,11 @@ class L3VariableTime(Realm):
else: else:
# print("response".format(response)) # print("response".format(response))
pprint(response) pprint(response)
p = response['interface'] port_data = response['interface']
# print("#### From LANforge: p, # print("#### From LANforge: port_data,
# response['insterface']:{}".format(p)) # response['insterface']:{}".format(p))
mac = p['mac'] mac = port_data['mac']
# print("#### From LANforge: p['mac']: # print("#### From LANforge: port_data['mac']:
# {mac}".format(mac=mac)) # {mac}".format(mac=mac))
# Parse the ap stats to find the matching # Parse the ap stats to find the matching
@@ -1712,7 +1712,7 @@ class L3VariableTime(Realm):
dl_pdu_str, dl_pdu_str,
atten_val, atten_val,
eid_name, eid_name,
p, port_data,
latency, latency,
jitter, jitter,
total_ul_rate, total_ul_rate,
@@ -1738,11 +1738,11 @@ class L3VariableTime(Realm):
else: else:
# print("response".format(response)) # print("response".format(response))
pprint(response) pprint(response)
p = response['interface'] port_data = response['interface']
print( print(
"#### 2g From LANforge: p, response['insterface']:{}".format(p)) "#### 2g From LANforge: port_data, response['insterface']:{}".format(p))
mac = p['mac'] mac = port_data['mac']
# print("#### From LANforge: p['mac']: # print("#### From LANforge: port_data['mac']:
# {mac}".format(mac=mac)) # {mac}".format(mac=mac))
# Parse the ap stats to find the matching # Parse the ap stats to find the matching
@@ -1791,7 +1791,7 @@ class L3VariableTime(Realm):
dl_pdu_str, dl_pdu_str,
atten_val, atten_val,
eid_name, eid_name,
p, port_data,
latency, latency,
jitter, jitter,
total_ul_rate, total_ul_rate,
@@ -1818,7 +1818,7 @@ class L3VariableTime(Realm):
"query-port: %s: incomplete response:" % (url)) "query-port: %s: incomplete response:" % (url))
pprint(response) pprint(response)
else: else:
p = response['interface'] port_data = response['interface']
latency, jitter, total_ul_rate, total_ul_rate_ll, total_ul_pkts_ll, total_dl_rate, total_dl_rate_ll, total_dl_pkts_ll = self.get_endp_stats_for_port( latency, jitter, total_ul_rate, total_ul_rate_ll, total_ul_pkts_ll, total_dl_rate, total_dl_rate_ll, total_dl_pkts_ll = self.get_endp_stats_for_port(
p["port"], endps) p["port"], endps)
@@ -1830,7 +1830,7 @@ class L3VariableTime(Realm):
dl_pdu_str, dl_pdu_str,
atten_val, atten_val,
eid_name, eid_name,
p, port_data,
latency, latency,
jitter, jitter,
total_ul_rate, total_ul_rate,