parameters: ()
return_statement: return ret
docstring: Get current VPN status.
docstring_summary: Get current VPN status.
docstring_tokens: Get current VPN status .
function: def vpn_status():
      """Get current VPN status."""
      ret = {}
      for line in run(s.service, "openvpn", "status")[0].split("\n"):
          x = re.search("'(?P<vpn>\\w+)'\\ is\\ (?P<running>not)?", line)
          if x:
              ret[x.group("vpn")] = x.group("running") != "not"
  
      return ret
function_tokens: def vpn_status ( ) : ret = { } for line in run ( s . service , "openvpn" , "status" ) [ 0 ] . split ( "\n" ) : x = re . search ( "'(?P<vpn>\\w+)'\\ is\\ (?P<running>not)?" , line ) if x : ret [ x . group ( "vpn" ) ] = x . group ( "running" ) != "not" return ret