[3541442] Change L2::Catalyst port names to what is reported in CDP

This commit is contained in:
Eric A. Miller
2012-07-08 21:45:13 -04:00
parent 50b4274f68
commit 2972c70177
2 changed files with 3 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ version 2.07 ()
* Get OS version for Juniper devices not reporting in sysDescr
* Correct base MAC reporting for Juniper devices
* Correct reporting of SSID broadcast status in Airespace class
* [3541442] Change L2::Catalyst port names to what is reported in CDP
* [2132349] Add an additional check to get Foundry OS version
* [2929883] [3413999] LLDP interface mapping issue
* [3297786] LLDP TimeMark component defaults to zero (David Baldwin)

View File

@@ -148,7 +148,9 @@ sub interfaces {
foreach my $iid ( keys %$i_index ) {
next unless defined $iid;
my $if = $i_index->{$iid};
$if =~ s/\./\// if $if;
my $port = $portmap{$iid};
$port =~ s/\./\// if $port;
$interfaces{$iid} = $port || $if;
}
return \%interfaces;