def get_all_networks(cluster, tenant_id, networks):
 uri = ('/ws.v1/lswitch?fields=*&tag=%s&tag_scope=os_tid' % tenant_id)
 try:
  resp_obj = do_single_request(HTTP_GET, uri, cluster=cluster)
 except NvpApiClient.NvpApiException:
  raise exception.QuantumException()
 if (not resp_obj):
  return []
 networks_result = copy(networks)
 return networks_result

def get_all_networks ( cluster , tenant_id , networks ) : uri = ( '/ws.v1/lswitch?fields=*&tag=%s&tag_scope=os_tid' % tenant_id ) try : resp_obj = do_single_request ( HTTP_GET , uri , cluster = cluster ) except NvpApiClient . NvpApiException : raise exception . QuantumException ( ) if ( not resp_obj ) : return [ ] networks_result = copy ( networks ) return networks_result
append the quantum network uuids we can find in the given cluster to "networks" .