/tools/test/connectivity/acts/framework/acts/controllers/openwrt_lib/ |
D | wireless_settings_applier.py | 36 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 …]
|
D | network_settings.py | 65 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/ |
D | access_point.py | 38 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 …]
|
D | openwrt_ap.py | 12 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 …]
|
D | packet_capture.py | 24 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/ |
D | ssh_test.py | 29 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/ |
D | pull.py | 28 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 …]
|
D | pull_test.py | 25 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/ |
D | bridge_interface.py | 56 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)
|
D | ap_get_interface.py | 39 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)
|
D | ap_iwconfig.py | 38 self.ssh = ap.ssh 48 output = self.ssh.run(iwconfig_command)
|
/tools/acloud/powerwash/ |
D | powerwash.py | 25 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/ |
D | remote_instance_fvp_device_factory.py | 22 from acloud.internal.lib import ssh 64 ssh.ShellCmdWithRetry(cmd) 71 ssh.ShellCmdWithRetry(cmd) 78 ssh.ShellCmdWithRetry(cmd) 95 ssh.ShellCmdWithRetry(cmd)
|
D | remote_instance_fvp_device_factory_test.py | 30 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,
|
D | remote_instance_cf_device_factory_test.py | 34 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,
|
D | remote_instance_cf_device_factory.py | 28 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)
|
D | gce_device_factory.py | 27 from acloud.internal.lib import ssh 92 self._ssh = ssh.Ssh(ip=ip,
|
D | create_cuttlefish_action_test.py | 33 from acloud.internal.lib import ssh 40 IP = ssh.IP(external="127.0.0.1", internal="10.0.0.1")
|
D | common_operations_test.py | 32 from acloud.internal.lib import ssh 39 IP = ssh.IP(external="127.0.0.1", internal="10.0.0.1")
|
/tools/acloud/internal/script/ |
D | create_extradisk.sh | 23 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/ |
D | device_driver_test.py | 30 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/ |
D | reconnect.py | 32 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/ |
D | delete.py | 31 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/ |
D | ota_sniffer.py | 26 from acts.controllers.utils_lib import ssh 241 self._sniffer_server = ssh.connection.SshConnection( 242 ssh.settings.from_config(self.ssh_config))
|
/tools/acloud/ |
D | revert_host_setup.sh | 35 local ACLOUD_SSH_KEY=~/.ssh/acloud_rsa
|