parameters: (self)
return_statement: return (
        default_routes[0] if default_routes else None,
        self._adb.system_properties['net.dns1'],
        self._adb.system_properties['net.dns2'],
      )
docstring: Returns current gateway, dns1, and dns2.
docstring_summary: Returns current gateway, dns1, and dns2.
docstring_tokens: Returns current gateway dns1 and dns2 .
function: def _GetCurrentDns(self):
      """Returns current gateway, dns1, and dns2."""
      routes = self._adb.RunShellCommand('cat /proc/net/route')[1:]
      routes = [route.split() for route in routes]
      default_routes = [route[0] for route in routes if route[1] == '00000000']
      return (
        default_routes[0] if default_routes else None,
        self._adb.system_properties['net.dns1'],
        self._adb.system_properties['net.dns2'],
      )
function_tokens: def _GetCurrentDns ( self ) : routes = self . _adb . RunShellCommand ( 'cat /proc/net/route' ) [ 1 : ] routes = [ route . split ( ) for route in routes ] default_routes = [ route [ 0 ] for route in routes if route [ 1 ] == '00000000' ] return ( default_routes [ 0 ] if default_routes else None , self . _adb . system_properties [ 'net.dns1' ] , self . _adb . system_properties [ 'net.dns2' ] , )