diff --git a/py-json/realm.py b/py-json/realm.py index 28bcece8..52c43acf 100755 --- a/py-json/realm.py +++ b/py-json/realm.py @@ -1091,7 +1091,7 @@ class L3CXProfile(LFCliBase): if report_file == None: raise ValueError("Monitor requires an output file to be defined") if created_cx == None: - raise ValueError("") + 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: diff --git a/py-scripts/test_ipv4_variable_time.py b/py-scripts/test_ipv4_variable_time.py index 981d9657..3db0214b 100755 --- a/py-scripts/test_ipv4_variable_time.py +++ b/py-scripts/test_ipv4_variable_time.py @@ -193,7 +193,7 @@ def main(): if optional_args is not None: optional_args.add_argument('--mode',help='Used to force mode of stations') optional_args.add_argument('--ap',help='Used to force a connection to a particular AP') - optional.add_argument('--report_file',help='where you want to store results') + optional_args.add_argument('--report_file',help='where you want to store results') args = parser.parse_args() num_sta = 2 @@ -233,7 +233,9 @@ def main(): ip_var_test.l3cxprofile.monitor(col_names=['Name','Tx Rate','Rx Rate','Tx PDUs','Rx PDUs'], report_file=report_f, - duration_sec=60) + duration_sec=60, + created_cx= ','.join([[*x.keys()][0] for x in ip_var_test.l3cxprofile.json_get('endp')['endpoint']]), + ouput_format='excel') ip_var_test.stop() if not ip_var_test.passes(): print(ip_var_test.get_fail_message())