    # File lib/fog/libvirt/requests/compute/list_interfaces.rb, line 5
            def list_interfaces(filter = { })
              data=[]
              if filter.keys.empty?
                active_networks = client.list_interfaces rescue []
                defined_networks = client.list_defined_interfaces rescue []
                (active_networks + defined_networks).each do |ifname|
                  data << interface_to_attributes(client.lookup_interface_by_name(ifname))
                end
              else
                data = [interface_to_attributes(get_interface_by_filter(filter))]
              end
              data.compact
            end