mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	test_l3_powersave_traffic.py : added help
sta_connect_multi_example.py : updated arsparse Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		@@ -32,7 +32,8 @@ def main():
 | 
				
			|||||||
        description='''\
 | 
					        description='''\
 | 
				
			||||||
Example of how to instantiate StaConnect and run the test
 | 
					Example of how to instantiate StaConnect and run the test
 | 
				
			||||||
        ''')
 | 
					        ''')
 | 
				
			||||||
    args = parser.parse_args()
 | 
					    #args = parser.parse_args() - add this line if adding arguments
 | 
				
			||||||
 | 
					    parser.parse_args()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # create multiple OPEN stations
 | 
					    # create multiple OPEN stations
 | 
				
			||||||
    station_names = LFUtils.port_name_series(start_id=0, end_id=1)
 | 
					    station_names = LFUtils.port_name_series(start_id=0, end_id=1)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,8 @@ import os
 | 
				
			|||||||
import importlib
 | 
					import importlib
 | 
				
			||||||
import time
 | 
					import time
 | 
				
			||||||
import datetime
 | 
					import datetime
 | 
				
			||||||
 | 
					import argparse
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if sys.version_info[0] != 3:
 | 
					if sys.version_info[0] != 3:
 | 
				
			||||||
    print("This script requires Python 3")
 | 
					    print("This script requires Python 3")
 | 
				
			||||||
@@ -153,6 +155,19 @@ class L3PowersaveTraffic(LFCliBase):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def main():
 | 
					def main():
 | 
				
			||||||
 | 
					    parser = argparse.ArgumentParser(
 | 
				
			||||||
 | 
					        prog='test_l3_powersave_traffic.py',
 | 
				
			||||||
 | 
					        formatter_class=argparse.RawTextHelpFormatter,
 | 
				
			||||||
 | 
					        epilog='''\
 | 
				
			||||||
 | 
					        test_l3_powersave_traffic.py
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            ''',
 | 
				
			||||||
 | 
					        description='''\
 | 
				
			||||||
 | 
					Example of creating traffic on an l3 connection
 | 
				
			||||||
 | 
					        ''')
 | 
				
			||||||
 | 
					    #args = parser.parse_args() - add this line if adding arguments
 | 
				
			||||||
 | 
					    parser.parse_args()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    lfjson_host = "localhost"
 | 
					    lfjson_host = "localhost"
 | 
				
			||||||
    lfjson_port = 8080
 | 
					    lfjson_port = 8080
 | 
				
			||||||
    # station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=4, padding_number_=10000)
 | 
					    # station_list = LFUtils.portNameSeries(prefix_="sta", start_id_=0, end_id_=4, padding_number_=10000)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user