parameter fixes

This commit is contained in:
Dipti
2020-10-30 13:41:59 -07:00
parent 2d3a39391e
commit 68121692c0
10 changed files with 55 additions and 13 deletions

View File

@@ -208,8 +208,13 @@ Note: multiple --radio switches may be entered up to the number of radios avai
parser.add_argument('--test_duration', help='--test_duration sets the duration of the test', default="5m")
args = parser.parse_args()
num_sta = 2
if (args.num_stations is not None) and (int(args.num_stations) > 0):
num_stations_converted = int(args.num_stations)
num_sta = num_stations_converted
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=1, padding_number_=10000,
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=num_sta-1, padding_number_=10000,
radio=args.radio)
ip_var_test = IPV4VariableTime(args.mgr, lfjson_port, number_template="00", sta_list=station_list,