WiFi test cleanups
- move config file handling into WiFiTest class
- move router autodetect to router classes
- auto-detect BSD router wireless and wired nics
Review URL: http://codereview.chromium.org/1512032
diff --git a/server/site_linux_router.py b/server/site_linux_router.py
index f3f5e38..4c00c6a 100644
--- a/server/site_linux_router.py
+++ b/server/site_linux_router.py
@@ -2,6 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import re
+
+def isLinuxRouter(router):
+ router_uname = router.run('uname').stdout
+ return re.search('Linux', router_uname)
+
class LinuxRouter(object):
"""
Linux/mac80211-style WiFi Router support for WiFiTest class.