Skip to content

Commit 2f5e384

Browse files
committed
type fix
1 parent 2ef64b2 commit 2f5e384

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
@@ -695,7 +695,7 @@ public function discoverTransceivers(): Collection
695695
$ifIndex = $ent['ifIndex'] ?? null;
696696

697697
return new Transceiver([
698-
'port_id' => (int) PortCache::getIdFromIfIndex($ifIndex, $this->getDevice()),
698+
'port_id' => (int) PortCache::getIdFromIfIndex((int) $ifIndex, $this->getDevice()),
699699
'index' => $index,
700700
'type' => $ent['entPhysicalDescr'] ?? null,
701701
'vendor' => $ent['entPhysicalMfgName'] ?? null,
@@ -783,7 +783,7 @@ public function discoverQos(): Collection
783783

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

0 commit comments

Comments
 (0)