still trying to get interfaces() right for l2/*

This commit is contained in:
Max Baker
2005-02-18 18:32:41 +00:00
parent 7a023554eb
commit 258b7551ff
3 changed files with 30 additions and 12 deletions

View File

@@ -158,6 +158,24 @@ sub serial {
return $foundry->SUPER::serial();
}
sub interfaces {
my $foundry = shift;
my $i_descr = $foundry->i_description;
my $i_name = $foundry->i_name;
# use ifName only if it is in portn
# format. For EdgeIrons
# else use ifDescr
foreach my $iid (keys %$i_name){
my $name = $i_name->{$iid};
next unless defined $name;
$i_descr->{$iid} = $name
if $name =~ /^port\d+/i;
}
return $i_descr;
}
sub i_ignore {
my $foundry = shift;
my $i_type = $foundry->i_type();