mirror of
				https://github.com/Telecominfraproject/wlan-laas-quali.git
				synced 2025-10-29 09:52:30 +00:00 
			
		
		
		
	Modified Terminal Server Setup Script
Signed-off-by: dutta-rohan <94938704+dutta-rohan@users.noreply.github.com>
This commit is contained in:
		| @@ -1,16 +1,31 @@ | ||||
| import sys | ||||
| import os | ||||
| #install packages | ||||
| package_list = ['paramiko','dlipower','pytest','scp','jq'] | ||||
| for package_name in package_list: | ||||
| package_list1 = ['paramiko','dlipower','pytest','scp'] | ||||
| package_list2 = ['git','jq'] | ||||
| for package_name in package_list1: | ||||
|     try: | ||||
|         os.system('sudo pip install '+package_name) | ||||
|         print("------------INSTALLED: "+package_name+"-------------") | ||||
|     except: | ||||
|     except Exception as e: | ||||
|         print("Cannot install "+package_name) | ||||
|         if package_name=="jq": | ||||
|             print("Try running: sudo yum install jq") | ||||
|         print("Try running: sudo yum install "+package_name) | ||||
|         print(e) | ||||
|  | ||||
| for package_name in package_list2: | ||||
|     try: | ||||
|         os.system('sudo yum install '+package_name) | ||||
|         print("------------INSTALLED: "+package_name+"-------------") | ||||
|     except Exception as e: | ||||
|         print("Cannot install "+package_name) | ||||
|         print("Try running: sudo pip install "+package_name) | ||||
|         print(e) | ||||
|  | ||||
|  | ||||
| #copy openwrt_ctl.py file | ||||
| os.system('cd cicd-git/;git clone https://github.com/Telecominfraproject/wlan-testing/; cp /home/lanforge/cicd-git/wlan-testing/libs/apnos/openwrt_ctl.py .;rm -rf wlan-testing/;cd ../') | ||||
| print("openwrt_ctl.py file copied") | ||||
| try: | ||||
|     os.system('cd cicd-git/;git clone https://github.com/Telecominfraproject/wlan-testing/; cp wlan-testing/libs/apnos/openwrt_ctl.py .;rm -rf wlan-testing/;cd ../') | ||||
|     print("openwrt_ctl.py file copied") | ||||
| except Exception as e: | ||||
|     print(e) | ||||
|     print("Check with lab admin if terminal server can be connected to") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Rohan Dutta
					Rohan Dutta