2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-22 20:31:09 +00:00

xcatprob switch_macmap command does not support IB switches (#4109)

This commit is contained in:
cxhong
2017-10-16 23:02:41 -04:00
committed by yangsong
parent f93ca55b24
commit 6892d88582

View File

@@ -810,6 +810,18 @@ sub refresh_switch {
return;
}
#check if it is Mellanox IB switch
foreach (keys %{$namemap}) {
my $ifname = $namemap->{$_};
if ($self->{collect_mac_info}) {
if ( ($ifname =~ /IB/) || ($ifname =~ /ib/) ) {
$self->{macinfo}->{$switch}->{ErrorStr} = "This command does not support Mellanox IB Switch";
return;
}
}
last;
}
# get mtu
my $iftomtumap = walkoid($session, '.1.3.6.1.2.1.2.2.1.4', silentfail => 1, verbose => $self->{show_verbose_info}, switch => $switch, callback => $self->{callback});
unless (defined($iftomtumap)) {