From 57a77beae465a18862384ca827708147644f78b9 Mon Sep 17 00:00:00 2001 From: eeb Date: Sat, 11 Jun 2005 11:52:02 +0000 Subject: [PATCH] * Fixed 6465: ensure nid '*' resolves to the IP address of ipoib0: --- lustre/utils/lconf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/utils/lconf b/lustre/utils/lconf index f815627..a7714fb 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -1065,11 +1065,13 @@ def sys_get_local_nid(net_type, wildcard, cluster_id): if ':' in wildcard: iface, star = string.split(wildcard, ':') local = if2addr(iface) - if not local: - panic("unable to determine ip for:", wildcard) + elif net_type == 'vib': + local = if2addr('ipoib0') else: host = socket.gethostname() local = socket.gethostbyname(host) + if not local: + panic("unable to determine ip for:", wildcard) elif net_type == 'elan': # awk '/NodeId/ { print $2 }' 'sys_get_elan_position_file()' f = sys_get_elan_position_file() -- 1.8.3.1