Fix for C1900 bp_index not containing interfaces.

This commit is contained in:
Brian de Wolf
2010-05-25 23:30:20 +00:00
parent 808d3fd5c6
commit 6deceb6bd1
2 changed files with 21 additions and 0 deletions

View File

@@ -251,6 +251,18 @@ sub i_vlan_membership {
return $i_vlan_membership;
}
sub bp_index {
my $c1900 = shift;
my $partial = shift;
my $if_index = $c1900->i_index($partial);
my $index = $c1900->orig_bp_index($partial) || {};
foreach my $iid ( keys %$if_index ) {
$index->{$iid} = $iid if(!defined $index->{$iid});
}
return $index;
}
1;
__END__
@@ -432,6 +444,13 @@ bridge group IDs.
print "Port: $port VLAN: $vlan\n";
}
=item $c1900->bp_index()
Returns a bp_index that contains the original bp_index entries and extra
entries for those interfaces listed in if_index, as some C1900 devices do not
return complete bp_indexes.
=back
=head2 F<STAND-ALONE-ETHERNET-SWITCH-MIB> Switch Port Table Entries: