From 9d6fdc7939109a5242e4d75f4cac00f3a7cbbebf Mon Sep 17 00:00:00 2001 From: rread Date: Thu, 16 Oct 2003 01:00:46 +0000 Subject: [PATCH] b=2131 Fix for routers with multiple gigE. I see several places now that appear to do the same thing in different ways. :( --- lustre/utils/Lustre/lustredb.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/utils/Lustre/lustredb.py b/lustre/utils/Lustre/lustredb.py index eeaa7ec..4ba04db 100644 --- a/lustre/utils/Lustre/lustredb.py +++ b/lustre/utils/Lustre/lustredb.py @@ -57,10 +57,12 @@ class LustreDB: uuids = self._get_all_refs() return uuids - def nid2server(self, nid, net_type): + def nid2server(self, nid, net_type, cluster_id): netlist = self.lookup_class('network') for net_db in netlist: - if net_db.get_val('nid') == nid and net_db.get_val('nettype') == net_type: + if (net_db.get_val('nid') == nid and + net_db.get_val('nettype') == net_type and + net_db.get_val('clusterid') == cluster_id): return net_db return None -- 1.8.3.1