Skip to content

Commit cd0610e

Browse files
committed
Fix after rebase
1 parent ae23e4a commit cd0610e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibreNMS/OS/Traits/BridgeMib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function discoverStpPorts(Collection $stpInstances): Collection
101101
$ports = new Collection;
102102

103103
// prep base port to port_id map if we have instances
104-
$baseIfIndex = $stpInstances->isEmpty() ? [] : $this->getCacheByIndex('BRIDGE-MIB::dot1dBasePortIfIndex');
104+
$baseIfIndex = $stpInstances->isEmpty() ? [] : SnmpQuery::walk('BRIDGE-MIB::dot1dBasePortIfIndex')->pluck();
105105
$basePortIdMap = array_map(function ($ifIndex) {
106106
return PortCache::getIdFromIfIndex($ifIndex, $this->getDevice());
107107
}, $baseIfIndex);

0 commit comments

Comments
 (0)