mirror of
				https://github.com/Telecominfraproject/wlan-testing.git
				synced 2025-10-31 19:08:01 +00:00 
			
		
		
		
	ap_tools.py fix for serial number and running generic command
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
		| @@ -28,7 +28,7 @@ class APTools: | ||||
|         self.credentials = { | ||||
|             'jumphost': jumphost, | ||||
|             'ip': host, | ||||
|             'serial': serial | ||||
|             'serial': serial, | ||||
|             'username': username, | ||||
|             'password': password, | ||||
|             'port': port, | ||||
| @@ -61,7 +61,7 @@ def main(): | ||||
|     parser.add_argument('--host', type=str, help=' --host : IP Address f LAB Controller / ' | ||||
|                                                  'Access Point System', default="localhost") | ||||
|     parser.add_argument('--jumphost', type=bool, help=' --host : IP Address f Access Point System', default=True) | ||||
|     parser.add_argument('--tty', type=bool, help=' --tty : /dev/ttyAP1', default="/dev/ttyAP1") | ||||
|     parser.add_argument('--tty', type=str, help=' --tty : /dev/ttyAP1', default="/dev/ttyAP1") | ||||
|     parser.add_argument('--port', type=int, help='--passwd of dut', default=22) | ||||
|     parser.add_argument('--username', type=str, help='--username to use on Access Point', default="root") | ||||
|     parser.add_argument('--password', type=str, help='--password to the given username', default="openwifi") | ||||
| @@ -71,6 +71,7 @@ def main(): | ||||
|                                                    'reboot | run_cmd', default="run_cmd") | ||||
|     parser.add_argument('--cmd', type=str, help='--cmd : used when action is "run_cmd"', default="pwd") | ||||
|     args = parser.parse_args() | ||||
|     print(args.tty) | ||||
|     lf_tools = APTools(host=args.host, port=args.port, tty=args.tty, | ||||
|                        username=args.username, jumphost=args.jumphost, password=args.password) | ||||
|     lf_tools.run_action(args.action, args.cmd) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shivamcandela
					shivamcandela