Remove i_ignore(), use Layer2 definition.

This commit is contained in:
Eric Miller
2007-06-20 03:09:24 +00:00
parent 8d496beceb
commit fc4d9cac24

View File

@@ -1,6 +1,5 @@
# SNMP::Info::Layer2::Baystack # SNMP::Info::Layer2::Baystack
# Eric Miller # Eric Miller
# $Id$
# #
# Copyright (c) 2004-6 Max Baker changes from version 0.8 and beyond. # Copyright (c) 2004-6 Max Baker changes from version 0.8 and beyond.
# All rights reserved. # All rights reserved.
@@ -30,6 +29,8 @@
package SNMP::Info::Layer2::Baystack; package SNMP::Info::Layer2::Baystack;
$VERSION = '1.05'; $VERSION = '1.05';
# $Id$
use strict; use strict;
use Exporter; use Exporter;
@@ -136,19 +137,6 @@ sub model {
return $model; return $model;
} }
sub i_ignore {
my $baystack = shift;
my $i_type = $baystack->i_type();
my %i_ignore;
foreach my $if (keys %$i_type){
my $type = $i_type->{$if};
next unless defined $type;
$i_ignore{$if}++ if $type =~ /(54|loopback|propvirtual|cpu)/i;
}
return \%i_ignore;
}
sub interfaces { sub interfaces {
my $baystack = shift; my $baystack = shift;
my $partial = shift; my $partial = shift;