No longer use default i_ignore() subs in L2/L3/L7 base classes

This commit is contained in:
Jeroen van Ingen
2014-10-21 16:54:49 +02:00
parent d3c2c1b607
commit 0793ff31f5
4 changed files with 8 additions and 69 deletions

View File

@@ -185,23 +185,6 @@ sub root_ip {
return;
}
sub i_ignore {
my $l3 = shift;
my $partial = shift;
my $interfaces = $l3->interfaces($partial) || {};
my %i_ignore;
foreach my $if ( keys %$interfaces ) {
# lo -> cisco aironet 350 loopback
if ( $interfaces->{$if} =~ /(tunnel|loopback|\blo\b|null)/i ) {
$i_ignore{$if}++;
}
}
return \%i_ignore;
}
sub serial {
my $l3 = shift;
@@ -544,12 +527,6 @@ name.
Only returns those iids that have a description listed in $l3->i_description()
=item $l3->i_ignore()
Returns reference to hash. Creates a key for each IID that should be ignored.
Currently looks for tunnel,loopback,lo,null from $l3->interfaces()
=item $l3->i_name()
Returns reference to hash of iid to human set name.