mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-12-24 22:37:03 +00:00
moved cvtest_report.py to cv_test_report.py to be consistant with cv_test_manager.py also update lf_wifi_capacity.py
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
13
py-json/cv_test_reports.py
Normal file
13
py-json/cv_test_reports.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user