From 5cde251816e5cdb182eba1bc71f659c3b014da84 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Sun, 30 Oct 2011 08:16:52 +0000 Subject: [PATCH] Make pping -i option support hfi interfaces git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10922 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/pping | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-client/bin/pping b/xCAT-client/bin/pping index 83a6b4987..6e7bcaeab 100755 --- a/xCAT-client/bin/pping +++ b/xCAT-client/bin/pping @@ -118,7 +118,13 @@ foreach my $interf (@interfaces) { if ($interf) { # make a copy of the node list and add the interface on $noderef = [ @nodes ]; - foreach (@$noderef) { s/$/-$interf/; } + foreach (@$noderef) { + if ($interf =~ /hf\d$/ && /-hf\d$/) { + s/-hf\d$/-$interf/; + } else { + s/$/-$interf/; + } + } } else { $noderef = \@nodes; # use the original node list