Skip to content

Commit 6de7ccd

Browse files
committed
type fix
1 parent 51b1ee0 commit 6de7ccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LibreNMS/OS/Shared/Cisco.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ public function discoverTransceivers(): Collection
696696
$ifIndex = $ent['ifIndex'] ?? null;
697697

698698
return new Transceiver([
699-
'port_id' => (int) PortCache::getIdFromIfIndex($ifIndex, $this->getDevice()),
699+
'port_id' => (int) PortCache::getIdFromIfIndex((int) $ifIndex, $this->getDevice()),
700700
'index' => $index,
701701
'type' => $ent['entPhysicalDescr'] ?? null,
702702
'vendor' => $ent['entPhysicalMfgName'] ?? null,
@@ -784,7 +784,7 @@ public function discoverQos(): Collection
784784

785785
$qos->push(new Qos([
786786
'device_id' => $this->getDeviceId(),
787-
'port_id' => $parent ? null : PortCache::getIdFromIfIndex($servicePolicies[$policyId]['cbQosIfIndex'], $this->getDevice()),
787+
'port_id' => $parent ? null : PortCache::getIdFromIfIndex((int) $servicePolicies[$policyId]['cbQosIfIndex'], $this->getDevice()),
788788
'type' => $dbtype,
789789
'title' => $title,
790790
'tooltip' => $tooltip,

0 commit comments

Comments
 (0)