Fix for C1900 bp_index not containing interfaces.
This commit is contained in:
@@ -10,6 +10,8 @@ version 2.02 ()
|
|||||||
+ Added L3::Pf for FreeBSD PFSense Firewalls (max)
|
+ Added L3::Pf for FreeBSD PFSense Firewalls (max)
|
||||||
* Added specific functions for neighbor mgmt addresses to CDP class
|
* Added specific functions for neighbor mgmt addresses to CDP class
|
||||||
* Implemented os_bin() method in CiscoStats
|
* Implemented os_bin() method in CiscoStats
|
||||||
|
+ [2980787] Fix for C1900 bp_index not containing interfaces.
|
||||||
|
(Brian De Wolf)
|
||||||
|
|
||||||
version 2.01 (06/12/09)
|
version 2.01 (06/12/09)
|
||||||
+ Added CiscoStpExtensions Class (Carlos Vicente)
|
+ Added CiscoStpExtensions Class (Carlos Vicente)
|
||||||
|
|||||||
@@ -251,6 +251,18 @@ sub i_vlan_membership {
|
|||||||
return $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;
|
1;
|
||||||
__END__
|
__END__
|
||||||
|
|
||||||
@@ -432,6 +444,13 @@ bridge group IDs.
|
|||||||
print "Port: $port VLAN: $vlan\n";
|
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
|
=back
|
||||||
|
|
||||||
=head2 F<STAND-ALONE-ETHERNET-SWITCH-MIB> Switch Port Table Entries:
|
=head2 F<STAND-ALONE-ETHERNET-SWITCH-MIB> Switch Port Table Entries:
|
||||||
|
|||||||
Reference in New Issue
Block a user