mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
some work
This commit is contained in:
@@ -1171,10 +1171,7 @@ class L3CXProfile(BaseProfile):
|
|||||||
output_format = report_file.split('.')[-1]
|
output_format = report_file.split('.')[-1]
|
||||||
|
|
||||||
# Step 1, column names
|
# Step 1, column names
|
||||||
if fields = None:
|
fields = ",".join(col_names)
|
||||||
pass
|
|
||||||
else:
|
|
||||||
fields = ",".join(col_names)
|
|
||||||
print(fields)
|
print(fields)
|
||||||
# Step 2, monitor columns
|
# Step 2, monitor columns
|
||||||
start_time = datetime.datetime.now()
|
start_time = datetime.datetime.now()
|
||||||
@@ -1187,13 +1184,8 @@ class L3CXProfile(BaseProfile):
|
|||||||
old_cx_rx_values = self.__get_rx_values()
|
old_cx_rx_values = self.__get_rx_values()
|
||||||
timestamps = []
|
timestamps = []
|
||||||
# for x in range(0,int(round(iterations,0))):
|
# for x in range(0,int(round(iterations,0))):
|
||||||
if col_names = None:
|
|
||||||
header_row=list((list(self.json_get("/endp/all")['endpoint'][0].values())[0].keys()))
|
|
||||||
while datetime.datetime.now() < end_time:
|
while datetime.datetime.now() < end_time:
|
||||||
if fields = None:
|
response = self.json_get("/endp/%s?fields=%s" % (created_cx, fields))
|
||||||
response = self.json_get("/endp/all")
|
|
||||||
else:
|
|
||||||
response = self.json_get("/endp/%s?fields=%s" % (created_cx, fields))
|
|
||||||
if "endpoint" not in response:
|
if "endpoint" not in response:
|
||||||
print(response)
|
print(response)
|
||||||
raise ValueError("no endpoint?")
|
raise ValueError("no endpoint?")
|
||||||
@@ -1219,6 +1211,8 @@ class L3CXProfile(BaseProfile):
|
|||||||
time.sleep(monitor_interval)
|
time.sleep(monitor_interval)
|
||||||
print(value_map)
|
print(value_map)
|
||||||
|
|
||||||
|
# if passes == expected_passes:
|
||||||
|
# self._pass("PASS: All tests passed")
|
||||||
# step 3 organize data
|
# step 3 organize data
|
||||||
endpoints = list()
|
endpoints = list()
|
||||||
for endpoint in value_map.values():
|
for endpoint in value_map.values():
|
||||||
|
|||||||
Reference in New Issue
Block a user