summaryrefslogtreecommitdiff
path: root/src/leap/base/checks.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-05 20:15:12 +0900
committerkali <kali@leap.se>2012-10-05 20:15:12 +0900
commit31c0afa5eb9bc7566ca39099520e8adc7b531e22 (patch)
tree5850ec279a39479209fa8d5f36137b56a18af329 /src/leap/base/checks.py
parent95ce59c8833cb2ba951630080cdbc1e6d756a666 (diff)
pep8
Diffstat (limited to 'src/leap/base/checks.py')
-rw-r--r--src/leap/base/checks.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/base/checks.py b/src/leap/base/checks.py
index a775e162..d02c9a3d 100644
--- a/src/leap/base/checks.py
+++ b/src/leap/base/checks.py
@@ -3,6 +3,7 @@
import logging
import platform
+import netifaces
import ping
import requests
@@ -11,6 +12,7 @@ from leap.base import exceptions
logger = logging.getLogger(name=__name__)
+
class LeapNetworkChecker(object):
"""
all network related checks
@@ -51,7 +53,7 @@ class LeapNetworkChecker(object):
def check_tunnel_default_interface(self):
"""
- Raises an TunnelNotDefaultRouteError
+ Raises an TunnelNotDefaultRouteError
(including when no routes are present)
"""
if not platform.system() == "Linux":
@@ -71,7 +73,6 @@ class LeapNetworkChecker(object):
if not destination == '00000000' or not iface == 'tun0':
raise exceptions.TunnelNotDefaultRouteError()
-
def get_default_interface_gateway(self):
"""only impletemented for linux so far."""
if not platform.system() == "Linux":