Add [the beginning of] a Layer3::Juniper class.

Junipers worked with SNMP::Info::Layer3; this class's main purpose
 is to get the device inventory a bit nicer.
This commit is contained in:
Bill Fenner
2006-04-05 04:16:36 +00:00
parent 33435d89e4
commit 4edb3115e5
3 changed files with 183 additions and 0 deletions

View File

@@ -875,6 +875,9 @@ sub device_type {
# Default generic cisco
$objtype = 'SNMP::Info::Layer3::Cisco' if ($objtype eq 'SNMP::Info::Layer3' and $desc =~ /\bIOS\b/);
# Default generic Juniper
$objtype = 'SNMP::Info::Layer3::Juniper' if ($objtype eq 'SNMP::Info::Layer3' and $desc =~ /\bJUNOS\b/);
# Layer 2 Supported
} elsif ($info->has_layer(2)) {
$objtype = 'SNMP::Info::Layer2';