From 4aec4c0ec4c3d68dd22efeb3e76e9be0a805b50a Mon Sep 17 00:00:00 2001 From: Dipti Date: Thu, 28 Jan 2021 13:33:01 -0800 Subject: [PATCH] arg changes --- py-json/realm.py | 6 +++--- py-scripts/test_ipv4_variable_time.py | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/py-json/realm.py b/py-json/realm.py index 621d1e5f..a2596239 100755 --- a/py-json/realm.py +++ b/py-json/realm.py @@ -1158,8 +1158,6 @@ class L3CXProfile(BaseProfile): raise ValueError("Monitor needs a list of Layer 3 connections") if (monitor_interval is None) or (monitor_interval < 1): raise ValueError("L3CXProfile::monitor wants monitor_interval >= 1 second") - #if col_names is None: - #raise ValueError("L3CXProfile::monitor wants a list of column names to monitor") if output_format is not None: if output_format.lower() != report_file.split('.')[-1]: if output_format.lower() != 'excel': @@ -1221,7 +1219,9 @@ class L3CXProfile(BaseProfile): old_cx_rx_values = new_cx_rx_values #write csv file here - open, write, and close file time.sleep(monitor_interval) - print(value_map) + if self.debug: + print("Printing value map...") + print(value_map) #organize data full_test_data_list = [] diff --git a/py-scripts/test_ipv4_variable_time.py b/py-scripts/test_ipv4_variable_time.py index 8e205f65..21830ccd 100755 --- a/py-scripts/test_ipv4_variable_time.py +++ b/py-scripts/test_ipv4_variable_time.py @@ -164,12 +164,13 @@ python3 ./test_ipv4_variable_time.py --ssid netgear --password admin123 --test_duration 2m (default) - --a_min 1000 + --a_min 3000 --b_min 1000 --ap "00:0e:8e:78:e1:76" --output_format csv --report_file ~/Documents/results.csv (Example of csv file output - please use another extension for other files) - --compared_report ~/Documents/results_prev.csv (Example of csv file retrieval - please use another extension for other files) + --compared_report ~/Documents/results_prev.csv (Example of csv file retrieval - please use another extension for other files) - UNDER CONSTRUCTION + --col_names ['name','tx bytes', 'rx bytes','dropped'] --debug ''')