removed cat/catalyst from model()
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
# SNMP::Info::Layer2 - SNMP Interface to Layer2 Devices
|
# SNMP::Info::Layer2 - SNMP Interface to Layer2 Devices
|
||||||
# Max Baker <max@warped.org>
|
# Max Baker <max@warped.org>
|
||||||
# $Id$
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002, Regents of the University of California
|
# Copyright (c) 2002, Regents of the University of California
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
@@ -30,6 +29,7 @@
|
|||||||
|
|
||||||
package SNMP::Info::Layer2;
|
package SNMP::Info::Layer2;
|
||||||
$VERSION = 0.1;
|
$VERSION = 0.1;
|
||||||
|
# $Id$
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
@@ -91,6 +91,8 @@ sub model {
|
|||||||
|
|
||||||
# Cisco
|
# Cisco
|
||||||
$model =~ s/sysid$//i;
|
$model =~ s/sysid$//i;
|
||||||
|
$model =~ s/^(cisco|catalyst)//i;
|
||||||
|
$model =~ s/^cat//i;
|
||||||
|
|
||||||
return $model;
|
return $model;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
package SNMP::Info::Layer3;
|
package SNMP::Info::Layer3;
|
||||||
$VERSION = 0.1;
|
$VERSION = 0.1;
|
||||||
|
# $Id$
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
@@ -146,6 +147,8 @@ sub model {
|
|||||||
my $model = &SNMP::translateObj($id);
|
my $model = &SNMP::translateObj($id);
|
||||||
|
|
||||||
$model =~ s/^cisco//i;
|
$model =~ s/^cisco//i;
|
||||||
|
$model =~ s/^catalyst//;
|
||||||
|
$model =~ s/^cat//;
|
||||||
return $model;
|
return $model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user