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
This commit is contained in:
wanghuaz 2011-10-30 08:16:52 +00:00
parent 23c18a60c5
commit 5cde251816

View File

@ -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