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:
Jeroen van Ingen
2021-06-11 14:55:26 +02:00
parent 9c306812f9
commit 3ae7073198

View File

@@ -429,7 +429,7 @@ sub _vlan_hoa {
my $vlan;
# Strip TimeFilter if we're using VlanCurrentTable
( $vlan = $idx ) =~ s/^\d+\.//;
($vlan = $idx) =~ s/^(\d+\.)*//g;
# Convert portlist bit array to bp_index array
for ( my $i = 0; $i <= $#$portlist; $i++ ) {