mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	cvtest_reports.py generic library to pull reports folder from lanforge run_test.py to run chamberview test test Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			487 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			487 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from paramiko import SSHClient
 | 
						|
from scp import SCPClient
 | 
						|
 | 
						|
class lanforge_reports:
 | 
						|
 | 
						|
    def pull_reports(self,hostname="localhost", username="lanforge", password="lanforge",report_location="/home/lanforge/html-reports/"):
 | 
						|
        ssh = SSHClient()
 | 
						|
        ssh.load_system_host_keys()
 | 
						|
        ssh.connect(hostname=hostname,username=username,password=password)
 | 
						|
 | 
						|
        with SCPClient(ssh.get_transport()) as scp:
 | 
						|
            scp.get(report_location,recursive=True)
 | 
						|
            scp.close()
 |