Re-attach a comment to where it actually belongs

This commit is contained in:
Peter Newman 2021-07-22 13:33:14 +01:00 committed by GitHub
parent e72ff30017
commit 1fb635d869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,10 +124,10 @@ if (!defined($session)) {
## map ifdescr to ifindex - should look at being able to cache this value
if (defined $ifdescr || defined $iftype) {
# escape "/" in ifdescr - very common in the Cisco world
if (defined $iftype) {
$status=fetch_ifindex($snmpIfType, $iftype);
} else {
# escape "/" in ifdescr - very common in the Cisco world
$ifdescr =~ s/\//\\\//g;
$status=fetch_ifindex($snmpIfDescr, $ifdescr); # if using on device with large number of interfaces
# recommend use of SNMP v2 (get-bulk)