Updated SLA poller for Cisco Nexus 9000 (#15855)

* Handled rttMonLatestJitterOperPacketOutOfSequence and rttMonLatestJitterOperPacketMIA not being present on Cisco Nexus9000 routers by defaulting to null value when not found.

Non-existance of OIDs confirmed here: https://cisco.github.io/cisco-mibs/supportlists/nexus9000/Nexus9000MIBSupportList.html

* Added snmp test data

* Removed superfluous comments

* Fixed sla number in test data

* Removed spacing

* Removed ?
This commit is contained in:
Peter Reinhold
2024-02-27 12:46:28 +01:00
committed by GitHub
parent 00f06c0cfb
commit a5fec082e7
3 changed files with 80 additions and 2 deletions

View File

@@ -449,8 +449,8 @@ class Cisco extends OS implements
$jitter = [
'PacketLossSD' => $data[$sla_nr]['rttMonLatestJitterOperPacketLossSD'],
'PacketLossDS' => $data[$sla_nr]['rttMonLatestJitterOperPacketLossDS'],
'PacketOutOfSequence' => $data[$sla_nr]['rttMonLatestJitterOperPacketOutOfSequence'],
'PacketMIA' => $data[$sla_nr]['rttMonLatestJitterOperPacketMIA'],
'PacketOutOfSequence' => $data[$sla_nr]['rttMonLatestJitterOperPacketOutOfSequence'] ?? null,
'PacketMIA' => $data[$sla_nr]['rttMonLatestJitterOperPacketMIA'] ?? null,
'PacketLateArrival' => $data[$sla_nr]['rttMonLatestJitterOperPacketLateArrival'],
'MOS' => isset($data[$sla_nr]['rttMonLatestJitterOperMOS']) ? intval($data[$sla_nr]['rttMonLatestJitterOperMOS']) / 100 : null,
'ICPIF' => $data[$sla_nr]['rttMonLatestJitterOperICPIF'] ?? null,