Some Cisco SB switches work as Layer3 devices + avoid a numbers of model type
This commit is contained in:
@@ -1691,6 +1691,11 @@ sub device_type {
|
|||||||
$objtype = 'SNMP::Info::Layer3::CiscoFWSM'
|
$objtype = 'SNMP::Info::Layer3::CiscoFWSM'
|
||||||
if ( $desc =~ /Cisco Firewall Services Module/i );
|
if ( $desc =~ /Cisco Firewall Services Module/i );
|
||||||
|
|
||||||
|
# Cisco Small Business (300 500) series override
|
||||||
|
# This is for enterprises(1).cisco(9).otherEnterprises(6).ciscosb(1)
|
||||||
|
$objtype = 'SNMP::Info::Layer2::CiscoSB'
|
||||||
|
if ( $soid =~ /^\.?1\.3\.6\.1\.4\.1\.9\.6\.1/ );
|
||||||
|
|
||||||
# Avaya Secure Router
|
# Avaya Secure Router
|
||||||
$objtype = 'SNMP::Info::Layer3::Tasman'
|
$objtype = 'SNMP::Info::Layer3::Tasman'
|
||||||
if ( $desc =~ /^(avaya|nortel)\s+(SR|secure\srouter)\s+\d{4}/i );
|
if ( $desc =~ /^(avaya|nortel)\s+(SR|secure\srouter)\s+\d{4}/i );
|
||||||
|
|||||||
@@ -130,8 +130,9 @@ sub model {
|
|||||||
|
|
||||||
foreach my $e ( sort keys %$e_model ) {
|
foreach my $e ( sort keys %$e_model ) {
|
||||||
if (defined $e_model->{$e} and $e_model->{$e} !~ /^\s*$/) {
|
if (defined $e_model->{$e} and $e_model->{$e} !~ /^\s*$/) {
|
||||||
my $model = "$e_model->{$e} $e_hwver->{$e}";
|
return $e_model->{$e};
|
||||||
return $model;
|
#my $model = "$e_model->{$e} $e_hwver->{$e}";
|
||||||
|
#return $model;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $ciscosb->description();
|
return $ciscosb->description();
|
||||||
|
|||||||
Reference in New Issue
Block a user