capture more models
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# SNMP::Info::Layer2::Orinoco
|
# SNMP::Info::Layer2::Orinoco
|
||||||
# Eric Miller <eric@jeneric.org>
|
# Eric Miller
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
# Copyright (c) 2004 Eric Miller
|
# Copyright (c) 2004-6 Eric Miller
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions are met:
|
# modification, are permitted provided that the following conditions are met:
|
||||||
@@ -103,8 +103,7 @@ sub model {
|
|||||||
my $descr = $orinoco->description();
|
my $descr = $orinoco->description();
|
||||||
return undef unless defined $descr;
|
return undef unless defined $descr;
|
||||||
|
|
||||||
return 'AP-1000' if ($descr =~ /AP-1000/);
|
return $1 if ($descr =~ /(AP-\d+)/);
|
||||||
return 'AP-2000' if ($descr =~ /AP-2000/);
|
|
||||||
return 'WavePOINT-II' if ($descr =~ /WavePOINT-II/);
|
return 'WavePOINT-II' if ($descr =~ /WavePOINT-II/);
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
@@ -158,7 +157,7 @@ SNMP::Info::Layer2::Orinoco - SNMP Interface to Orinoco Series Access Points
|
|||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
|
||||||
Eric Miller (C<eric@jeneric.org>)
|
Eric Miller
|
||||||
|
|
||||||
=head1 SYNOPSIS
|
=head1 SYNOPSIS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user