We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae23e4a commit cd0610eCopy full SHA for cd0610e
LibreNMS/OS/Traits/BridgeMib.php
@@ -101,7 +101,7 @@ public function discoverStpPorts(Collection $stpInstances): Collection
101
$ports = new Collection;
102
103
// prep base port to port_id map if we have instances
104
- $baseIfIndex = $stpInstances->isEmpty() ? [] : $this->getCacheByIndex('BRIDGE-MIB::dot1dBasePortIfIndex');
+ $baseIfIndex = $stpInstances->isEmpty() ? [] : SnmpQuery::walk('BRIDGE-MIB::dot1dBasePortIfIndex')->pluck();
105
$basePortIdMap = array_map(function ($ifIndex) {
106
return PortCache::getIdFromIfIndex($ifIndex, $this->getDevice());
107
}, $baseIfIndex);
0 commit comments