mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
num_stations argument fixed here, few other tests to have this argument fixed still
This commit is contained in:
@@ -91,7 +91,8 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
num_sta = 2
|
num_sta = 2
|
||||||
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
||||||
num_sta = int(args.num_stations)
|
num_stations_converted = int(args.num_stations)
|
||||||
|
num_sta = num_stations_converted
|
||||||
|
|
||||||
station_list = LFUtils.portNameSeries(prefix_="sta",
|
station_list = LFUtils.portNameSeries(prefix_="sta",
|
||||||
start_id_=0,
|
start_id_=0,
|
||||||
|
|||||||
@@ -91,7 +91,8 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
num_sta = 2
|
num_sta = 2
|
||||||
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
||||||
num_sta = int(args.num_stations)
|
num_stations_converted = int(args.num_stations)
|
||||||
|
num_sta = num_stations_converted
|
||||||
|
|
||||||
station_list = LFUtils.portNameSeries(prefix_="sta",
|
station_list = LFUtils.portNameSeries(prefix_="sta",
|
||||||
start_id_=0,
|
start_id_=0,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import pprint
|
|||||||
|
|
||||||
|
|
||||||
class IPv4Test(LFCliBase):
|
class IPv4Test(LFCliBase):
|
||||||
def __init__(self, host, port, ssid, security, password, sta_list=None, number_template="00000", radio = "wiphy0", _debug_on=False,
|
def __init__(self, host, port, ssid, security, password, sta_list=None, number_template="00000", radio ="wiphy0", _debug_on=False,
|
||||||
_exit_on_error=False,
|
_exit_on_error=False,
|
||||||
_exit_on_fail=False):
|
_exit_on_fail=False):
|
||||||
super().__init__(host, port, _debug=_debug_on, _halt_on_error=_exit_on_error, _exit_on_fail=_exit_on_fail)
|
super().__init__(host, port, _debug=_debug_on, _halt_on_error=_exit_on_error, _exit_on_fail=_exit_on_fail)
|
||||||
@@ -98,7 +98,8 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
num_sta = 2
|
num_sta = 2
|
||||||
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
||||||
num_sta = int(args.num_stations)
|
num_stations_converted = int(args.num_stations)
|
||||||
|
num_sta = num_stations_converted
|
||||||
|
|
||||||
station_list = LFUtils.portNameSeries(prefix_="sta",
|
station_list = LFUtils.portNameSeries(prefix_="sta",
|
||||||
start_id_=0,
|
start_id_=0,
|
||||||
|
|||||||
@@ -203,7 +203,9 @@ python3 ./test_generic.py --upstream_port eth1 \\
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
num_sta = 2
|
num_sta = 2
|
||||||
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
||||||
num_sta = int(args.num_stations)
|
num_stations_converted = int(args.num_stations)
|
||||||
|
num_sta = num_stations_converted
|
||||||
|
|
||||||
station_list = LFUtils.portNameSeries(radio=args.radio,
|
station_list = LFUtils.portNameSeries(radio=args.radio,
|
||||||
prefix_="sta",
|
prefix_="sta",
|
||||||
start_id_=0,
|
start_id_=0,
|
||||||
|
|||||||
@@ -188,7 +188,9 @@ def main():
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
num_sta = 2
|
num_sta = 2
|
||||||
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
||||||
num_sta = args.num_stations
|
num_stations_converted = int(args.num_stations)
|
||||||
|
num_sta = num_stations_converted
|
||||||
|
|
||||||
|
|
||||||
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_= num_sta-1, padding_number_=10000, radio=args.radio)
|
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_= num_sta-1, padding_number_=10000, radio=args.radio)
|
||||||
|
|
||||||
|
|||||||
@@ -197,8 +197,8 @@ Note: multiple --radio switches may be entered up to the number of radios avai
|
|||||||
|
|
||||||
num_sta = 2
|
num_sta = 2
|
||||||
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
if (args.num_stations is not None) and (int(args.num_stations) > 0):
|
||||||
num_sta = args.num_stations
|
num_stations_converted = int(args.num_stations)
|
||||||
|
num_sta = num_stations_converted
|
||||||
|
|
||||||
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=num_sta-1, padding_number_=10000, radio=args.radio)
|
station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=num_sta-1, padding_number_=10000, radio=args.radio)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user