Add proper classing for Cisco blade switches to Layer2 section as well, for CBS devices reporting L2 capability only

This commit is contained in:
Jeroen van Ingen
2011-09-05 11:35:32 +02:00
parent 674eca23b9
commit 8fb36625bc

View File

@@ -1365,6 +1365,10 @@ sub device_type {
$objtype = 'SNMP::Info::Layer3::C3550' $objtype = 'SNMP::Info::Layer3::C3550'
if ( $desc =~ /(C3550|ME340x)/ ); if ( $desc =~ /(C3550|ME340x)/ );
# Cisco blade switches, CBS30x0 and CBS31x0 models with L2 only
$objtype = 'SNMP::Info::Layer3::C6500'
if ( $desc =~ /cisco/i and $desc =~ /CBS3[0-9A-Za-z]{3}/ );
# Cisco 2970 # Cisco 2970
$objtype = 'SNMP::Info::Layer3::C6500' $objtype = 'SNMP::Info::Layer3::C6500'
if ( $desc =~ /(C2970|C2960)/ ); if ( $desc =~ /(C2970|C2960)/ );