    # File lib/fog/libvirt/requests/compute/list_networks.rb, line 5
            def list_networks(filter = { })

              data=[]
              if filter.keys.empty?
                (client.list_networks + client.list_defined_networks).each do |network_name|
                  data << network_to_attributes(client.lookup_network_by_name(network_name))
                end
              else
                data = [network_to_attributes(get_network_by_filter(filter))]
              end
              data
            end