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:
parent
23c18a60c5
commit
5cde251816
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user