def _list_networks():
output = core.run("<STR_LIT>")<EOL>networks = {}<EOL>net_lines = [n.strip() for n in output.splitlines()[<NUM_LIT:2>:]]<EOL>for line in net_lines:<EOL><INDENT>if not line:<EOL><INDENT>continue<EOL><DEDENT>name, state, auto = line.split()<EOL>networks[name] = state == "<STR_LIT>"<EOL><DEDENT>return networks<EOL>
Return a dictionary of network name to active status bools.

        Sample virsh net-list output::

    Name                 State      Autostart
    -----------------------------------------
    default              active     yes
    juju-test            inactive   no
    foobar               inactive   no

    Parsing the above would return::
    {"default": True, "juju-test": False, "foobar": False}

    See: http://goo.gl/kXwfC