#306 fix incorrect interfaces for d-link

This commit is contained in:
Oliver Gorwits
2019-04-20 09:42:43 +01:00
parent 75785f70c7
commit 9b1995e90f
2 changed files with 26 additions and 1 deletions

View File

@@ -91,6 +91,16 @@ sub model {
}
}
# ifDescr is the same for all interfaces in a class, but the ifName is
# unique, so let's use that for port name.
sub interfaces {
my $dlink = shift;
my $partial = shift;
my $interfaces = $dlink->orig_i_name($partial);
return $interfaces;
}
sub vendor {
return 'dlink';