mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
small changes -- not signif. latest version
This commit is contained in:
@@ -1182,7 +1182,7 @@ class L3CXProfile(BaseProfile):
|
||||
expected_passes = 0
|
||||
old_cx_rx_values = self.__get_rx_values()
|
||||
timestamps = []
|
||||
# for x in range(0,int(round(iterations,0))):
|
||||
|
||||
while datetime.datetime.now() < end_time:
|
||||
if fields is None:
|
||||
response = self.json_get("/endp/all")
|
||||
@@ -1224,6 +1224,8 @@ class L3CXProfile(BaseProfile):
|
||||
full_test_data_list.append(endpoint_data)
|
||||
|
||||
df = pd.DataFrame(full_test_data_list)
|
||||
df.columns=header_row
|
||||
#df=df[[*header_row]]
|
||||
|
||||
try:
|
||||
systeminfo = ast.literal_eval(requests.get('http://'+str(self.lfclient_host)+':'+str(self.lfclient_port)).text)
|
||||
@@ -1248,7 +1250,6 @@ class L3CXProfile(BaseProfile):
|
||||
if output_format == 'df':
|
||||
return df
|
||||
supported_formats = ['csv', 'json', 'stata', 'pickle','html']
|
||||
|
||||
for x in supported_formats:
|
||||
if output_format.lower() == x or report_file.split('.')[-1] == x:
|
||||
exec('df.to_' + x + '("' + report_file + '")')
|
||||
|
||||
@@ -78,7 +78,6 @@ class IPV4VariableTime(LFCliBase):
|
||||
self.station_profile.mode = mode
|
||||
if self.ap is not None:
|
||||
self.station_profile.set_command_param("add_sta", "ap",self.ap)
|
||||
#self.station_list= LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=2, padding_number_=10000, radio='wiphy0') #Make radio a user defined variable from terminal.
|
||||
|
||||
|
||||
self.cx_profile.host = self.host
|
||||
@@ -193,7 +192,7 @@ python3 ./test_ipv4_variable_time.py
|
||||
optional_args.add_argument('--a_min', help='--a_min bps rate minimum for side_a', default=256000)
|
||||
optional_args.add_argument('--b_min', help='--b_min bps rate minimum for side_b', default=256000)
|
||||
optional_args.add_argument('--test_duration', help='--test_duration sets the duration of the test', default="2m")
|
||||
optional_args.add_argument('--col_names', help='Which columns you want to monitor', default=['Dropped', 'Name', 'Rx Bytes', 'Tx Bytes'])
|
||||
optional_args.add_argument('--col_names', help='Which columns you want to monitor', default=['Tx Bytes','Name','Dropped', 'Rx Bytes'])
|
||||
args = parser.parse_args()
|
||||
|
||||
num_sta = 2
|
||||
|
||||
Reference in New Issue
Block a user