Home | History | Annotate | Download | only in server

Lines Matching refs:router

37     """Build a router hostname from a client hostname.
39 @param client_hostname: string hostname of DUT connected to a router.
40 @param router_hostname: string hostname of router.
41 @return string hostname of connected router or None if the hostname
62 @param router_addr: string DNS/IPv4 address to use for router host object.
63 @param enable_avahi: boolean True iff avahi should be started on the router.
70 logging.info('Connecting to router at %s', router_hostname)
73 raise error.TestError('Router at %s is not pingable.' %
81 """Linux/mac80211-style WiFi Router support for WiFiTest class.
84 router implemented with Linux/mac80211. The router must
124 def router(self):
127 @return Host object representing the remote router.
152 router.
155 super(LinuxRouter, self).__init__(host, 'router')
178 # Log the most recent message on the router so that we can rebuild the
224 # router creation.
232 """Reboot this router, and restore it to a known-good state.
234 @param timeout Maximum seconds to wait for router to return.
242 """@return True iff this router has local servers configured."""
269 self.router.run("cat <<EOF >%s\n%s\nEOF\n" %
277 self.router.run('rm %s' % log_file, ignore_status=True)
278 self.router.run('stop wpasupplicant', ignore_status=True)
281 pid = int(self.router.run(start_command).stdout.strip())
291 # Wait for confirmation that the router came up.
295 success = self.router.run(
301 # A common failure is an invalid router configuration.
303 bad_config = self.router.run(
311 early_exit = self.router.run('kill -0 %d' % pid,
327 """Kill a process on the router.
392 self.router.get_file(remote_file, local_file)
422 Also setup a local server if this router supports them.
434 raise error.TestNAError('Router does not have AC support')
459 self.router.run('%s link set %s up' % (self.cmd_ip, interface))
502 self.router)
582 self.router.run('%s addr flush %s' %
584 self.router.run('%s addr add %s' %
586 self.router.run('%s link set %s up' %
592 """Stop a local server on the router
598 self.router.run("%s addr del %s" %
628 self.router.run('cat <<EOF >%s\n%s\nEOF\n' %
630 self.router.run('dnsmasq --conf-file=%s' % dhcpd_conf_file)
634 """Stop a dhcp server on the router.
654 """Return IP address on the WiFi subnet of a local server on the router.
787 self.router.run('%s link set %s down' %
797 @param instance int router instance number.
807 @param instance int router instance number.
812 result = self.router.run('grep -q "%s" %s' % (pmksa_match, log_file),
819 """@return string ssid for the network stemming from this router."""
843 self.router.run('%s -p%s deauthenticate %s' %
849 over to test router.
875 self.router.run("%s link set %s up" % (self.cmd_ip, interface))
876 self.router.run('%s -i %s -t %s -c %d' %
894 self.router.run('%s link set %s up' % (self.cmd_ip, interface))
938 pid = int(self.router.run(command).stdout)
953 result = self.router.run("grep -qi '%s' %s" % (deauth_msg, log_file),
971 result = self.router.run("grep -qi '%s' %s" % (coex_msg, log_file),
1006 self.router.run('echo 2 > /proc/sys/net/ipv4/conf/%s/rp_filter' %
1012 self.router.run('echo 1 > /proc/sys/net/ipv4/conf/%s/arp_ignore' %
1014 self.router.run('echo 1 > /proc/sys/net/ipv4/conf/%s/arp_ignore' %
1019 """Configure a router interface to connect as a client to a network.
1042 self.router.run('cat <<EOF >%s\n%s\nEOF\n' %
1046 self.router.run('%s link set %s up' % (self.cmd_ip, interface))
1051 self.router.run(start_command)
1055 self.router.run('%s addr add %s/24 dev %s' %
1091 if self.router.run('test -e %s' % footer_file,