Small Bridge.pm fix
This change will make sure that the internal _vlan_hoa() function will strip any additional index levels that may be present in input data. Not only applies to Q-BRIDGE-MIB tables with a TimeFilter index, but also to tables where part of the data comes from IEEE8021-Q-BRIDGE-MIB with both TimeFilter and PBB ID.
This commit is contained in:
@@ -429,7 +429,7 @@ sub _vlan_hoa {
|
|||||||
my $vlan;
|
my $vlan;
|
||||||
|
|
||||||
# Strip TimeFilter if we're using VlanCurrentTable
|
# Strip TimeFilter if we're using VlanCurrentTable
|
||||||
( $vlan = $idx ) =~ s/^\d+\.//;
|
($vlan = $idx) =~ s/^(\d+\.)*//g;
|
||||||
|
|
||||||
# Convert portlist bit array to bp_index array
|
# Convert portlist bit array to bp_index array
|
||||||
for ( my $i = 0; $i <= $#$portlist; $i++ ) {
|
for ( my $i = 0; $i <= $#$portlist; $i++ ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user