Commit 2e64d5f4 authored by Mike Hibler's avatar Mike Hibler
Browse files

Reinstall 2900 hack from rev 1.54, it is still needed

parent 32082473
......@@ -1239,6 +1239,17 @@ sub walkTableIfIndex($$$;$) {
foreach my $row (@$table) {
my ($oid,$index,$data) = @$row;
#
# Some generic MIBs return just a port number on the 2900.
# Convert those to module.port format
#
$self->debug(" $oid: $index: $data\n", 2);
if ($self->{SWITCHCLASS} == 2900 &&
$index =~ /^\d+$/) {
$index = "0.$index";
$self->debug(" index rewritten to $index\n", 2);
}
#
# Convert the ifindex we got into a port
# XXX - Should use convertPortFormat(), right? I've preserved the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment