Home
last modified time | relevance | path

Searched refs:ssh (Results 1 – 25 of 48) sorted by relevance

12

/tools/test/connectivity/acts/framework/acts/controllers/openwrt_lib/
Dwireless_settings_applier.py36 def __init__(self, ssh, configs, channel_2g, channel_5g): argument
46 self.ssh = ssh
47 self.service_manager = ServiceManager(ssh)
56 self.ssh.run("uci set wireless.radio1.channel='%s'" % self.channel_2g)
57 self.ssh.run("uci set wireless.radio0.channel='%s'" % self.channel_5g)
59 self.ssh.run("uci set wireless.radio0.htmode='VHT20'")
61 self.ssh.run("iw reg set ZA")
62 self.ssh.run("uci set wireless.radio0.htmode='VHT40'")
65 self.ssh.run("iw reg set AU")
68 self.ssh.run("uci set wireless.default_radio1.disabled='%s'" %
[all …]
Dnetwork_settings.py65 def __init__(self, ssh, ssh_settings, logger): argument
73 self.ssh = ssh
74 self.service_manager = ServiceManager(ssh)
107 out = self.ssh.run("cat %s" % HISTORY_CONFIG_PATH).stdout
122 out = self.ssh.run("cat %s" % HISTORY_CONFIG_PATH).stdout
124 self.ssh.run("rm %s" % HISTORY_CONFIG_PATH)
128 self.ssh.run("uci commit")
140 self.ssh.run("opkg update")
143 self.ssh.run("opkg install %s" % package_name,
157 self.ssh.run("opkg remove %s" % package_name)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Daccess_point.py38 from acts.controllers.utils_lib.ssh import connection
39 from acts.controllers.utils_lib.ssh import settings
203 self.ssh = connection.SshConnection(self.ssh_settings)
206 self._ip_cmd = ip.LinuxIpCommand(self.ssh)
207 self._route_cmd = route.LinuxRouteCommand(self.ssh)
239 self.ssh.run('stop wpasupplicant')
243 self.ssh.run('stop hostapd')
249 self.ssh.run(WLAN_DOWN)
256 self.ssh.run(BRIDGE_DOWN)
257 self.ssh.run(BRIDGE_DEL)
[all …]
Dopenwrt_ap.py12 from acts.controllers.utils_lib.ssh import connection
13 from acts.controllers.utils_lib.ssh import settings
108 self.ssh = connection.SshConnection(self.ssh_settings)
113 self.ssh, self.ssh_settings, self.log)
153 self.ssh, wireless_configs, channel_2g, channel_5g)
158 self.ssh.run("wifi up")
169 self.ssh.run("wifi down")
204 str_output = self.ssh.run("wifi status %s" % radio).stdout
220 str_output = self.ssh.run("wifi status %s" % radio).stdout
241 ifconfig = self.ssh.run("ifconfig %s" % ifname).stdout
[all …]
Dpacket_capture.py24 from acts.controllers.utils_lib.ssh import connection
25 from acts.controllers.utils_lib.ssh import formatter
26 from acts.controllers.utils_lib.ssh import settings
103 self.ssh = connection.SshConnection(self.ssh_settings)
110 result = self.ssh.run('ifconfig -a', ignore_status=True)
125 self.ssh.run('ifconfig wlan%s down' % iface[-1], ignore_status=True)
126 self.ssh.run('iw dev %s del' % iface, ignore_status=True)
127 self.ssh.run('iw phy%s interface add %s type %s'
129 self.ssh.run('ip link set %s up' % iface, ignore_status=True)
130 result = self.ssh.run('iw dev %s info' % iface, ignore_status=True)
[all …]
/tools/acloud/internal/lib/
Dssh_test.py29 from acloud.internal.lib import ssh
37 FAKE_IP = ssh.IP(external="1.1.1.1", internal="10.1.1.1")
59 ssh.ShellCmdWithRetry,
64 ssh_object = ssh.Ssh(ip=self.FAKE_IP,
74 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
87 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
101 ssh_object = ssh.Ssh(self.FAKE_IP,
120 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
134 ssh_object = ssh.Ssh(self.FAKE_IP,
153 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
[all …]
/tools/acloud/pull/
Dpull.py28 from acloud.internal.lib.ssh import Ssh
29 from acloud.internal.lib.ssh import IP
59 ssh = Ssh(ip=IP(ip=instance.ip),
63 log_files = SelectLogFileToPull(ssh, file_name)
65 PullLogs(ssh, log_files, download_folder)
67 DisplayLog(ssh, log_files[0], no_prompts)
71 def PullLogs(ssh, log_files, download_folder): argument
81 ssh.ScpPullFile(log_file, target_file)
85 def DisplayLog(ssh, log_file, no_prompts=False): argument
97 ssh.Run("tail -f -n +1 %s" % log_file, show_output=True)
[all …]
Dpull_test.py25 from acloud.internal.lib import ssh
69 @mock.patch.object(ssh.Ssh, "Run")
72 fake_ip = ssh.IP(external="1.1.1.1", internal="10.1.1.1")
73 _ssh = ssh.Ssh(ip=fake_ip,
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/
Dbridge_interface.py56 self.ssh = ap.ssh
68 self.ssh.run(CREATE_BRIDGE)
77 self.ssh.run(ENABLE_4ADDR)
86 self.ssh.run(ADD_INTERFACE)
94 self.ssh.run(SET_BRIDGE_IP)
108 self.ssh.run(BRING_DOWN_BRIDGE)
110 self.ssh.run(DELETE_BRIDGE)
114 self.ssh.run(BRING_DOWN_WLAN)
117 self.ssh.run(DISABLE_4ADDR)
Dap_get_interface.py39 self.ssh = ap.ssh
47 output = self.ssh.run(GET_ALL_INTERFACE)
58 output = self.ssh.run(GET_VIRTUAL_INTERFACE)
85 output = self.ssh.run(BRCTL_SHOW)
109 output = self.ssh.run(IW_LIST_FREQ)
142 output = self.ssh.run('ifconfig')
163 output = self.ssh.run(LAN_CHECK)
179 self.ssh.run(PING)
Dap_iwconfig.py38 self.ssh = ap.ssh
48 output = self.ssh.run(iwconfig_command)
/tools/acloud/powerwash/
Dpowerwash.py25 from acloud.internal.lib.ssh import Ssh
26 from acloud.internal.lib.ssh import IP
46 ssh = Ssh(ip=IP(ip=instance.ip),
52 PowerwashDevice(ssh, instance_id)
57 def PowerwashDevice(ssh, instance_id): argument
66 ssh.Run(ssh_command)
/tools/acloud/public/actions/
Dremote_instance_fvp_device_factory.py22 from acloud.internal.lib import ssh
64 ssh.ShellCmdWithRetry(cmd)
71 ssh.ShellCmdWithRetry(cmd)
78 ssh.ShellCmdWithRetry(cmd)
95 ssh.ShellCmdWithRetry(cmd)
Dremote_instance_fvp_device_factory_test.py30 from acloud.internal.lib import ssh
52 @mock.patch.object(ssh, "ShellCmdWithRetry")
61 fake_ip = ssh.IP(external="1.1.1.1", internal="10.1.1.1")
74 factory._ssh = ssh.Ssh(ip=fake_ip,
Dremote_instance_cf_device_factory_test.py34 from acloud.internal.lib import ssh
263 @mock.patch.object(ssh, "ShellCmdWithRetry")
264 @mock.patch.object(ssh.Ssh, "Run")
270 fake_ip = ssh.IP(external="1.1.1.1", internal="10.1.1.1")
285 factory._ssh = ssh.Ssh(ip=fake_ip,
326 @mock.patch.object(ssh, "ShellCmdWithRetry")
332 fake_ip = ssh.IP(external="1.1.1.1", internal="10.1.1.1")
347 factory._ssh = ssh.Ssh(ip=fake_ip,
Dremote_instance_cf_device_factory.py28 from acloud.internal.lib import ssh
124 ip = ssh.IP(ip=self._avd_spec.remote_host)
125 self._ssh = ssh.Ssh(
287 ssh.ShellCmdWithRetry(cmd)
312 ssh.ShellCmdWithRetry(cmd)
Dgce_device_factory.py27 from acloud.internal.lib import ssh
92 self._ssh = ssh.Ssh(ip=ip,
Dcreate_cuttlefish_action_test.py33 from acloud.internal.lib import ssh
40 IP = ssh.IP(external="127.0.0.1", internal="10.0.0.1")
Dcommon_operations_test.py32 from acloud.internal.lib import ssh
39 IP = ssh.IP(external="127.0.0.1", internal="10.0.0.1")
/tools/acloud/internal/script/
Dcreate_extradisk.sh23 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo mkfs.…
24 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo mount…
25 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "ls /mnt"
26 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo umoun…
/tools/acloud/public/
Ddevice_driver_test.py30 from acloud.internal.lib import ssh
81 fake_ip = ssh.IP(external="140.1.1.1", internal="10.1.1.1")
136 fake_ip = ssh.IP(external="140.1.1.1", internal="10.1.1.1")
/tools/acloud/reconnect/
Dreconnect.py32 from acloud.internal.lib import ssh as ssh_object
65 ssh = ssh_object.Ssh(ip=ssh_object.IP(ip=instance.ip), user=host_user,
70 raw_data = ssh.GetCmdOutput("cat " + remote_cuttlefish_config)
/tools/acloud/delete/
Ddelete.py31 from acloud.internal.lib import ssh as ssh_object
241 ssh = ssh_object.Ssh(
247 compute_client.InitRemoteHost(ssh, remote_host, host_user)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dota_sniffer.py26 from acts.controllers.utils_lib import ssh
241 self._sniffer_server = ssh.connection.SshConnection(
242 ssh.settings.from_config(self.ssh_config))
/tools/acloud/
Drevert_host_setup.sh35 local ACLOUD_SSH_KEY=~/.ssh/acloud_rsa

12