From 869e75472fbeb39a7bd01150a9d78bcf6d7311a0 Mon Sep 17 00:00:00 2001 From: eeb Date: Thu, 14 Jul 2005 10:35:09 +0000 Subject: [PATCH] * Changed find_route to always return an empty list, to complement the change in find_local_servers which returns all servers. --- lustre/utils/lconf | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lustre/utils/lconf b/lustre/utils/lconf index b5bc9179..145a67e 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -2613,17 +2613,17 @@ def local_interface(net_type, cluster_id, nid): def find_route(srv_list): result = [] - frm_type = local_clusters[0][0] - for srv in srv_list: - debug("find_route: srv:", srv.nid, "type: ", srv.net_type) - to_type = srv.net_type - to = srv.nid - cluster_id = srv.cluster_id - debug ('looking for route to', to_type, to) - for r in local_routes: - debug("find_route: ", r) - if (r[3] <= to and to <= r[4]) and cluster_id == r[2]: - result.append((srv, r)) +# frm_type = local_clusters[0][0] +# for srv in srv_list: +# debug("find_route: srv:", srv.nid, "type: ", srv.net_type) +# to_type = srv.net_type +# to = srv.nid +# cluster_id = srv.cluster_id +# debug ('looking for route to', to_type, to) +# for r in local_routes: +# debug("find_route: ", r) +# if (r[3] <= to and to <= r[4]) and cluster_id == r[2]: +# result.append((srv, r)) return result def get_active_target(db): -- 1.8.3.1