Skip to content

Commit 196f695

Browse files
authored
Added more defaults to OSPFv3 area fields missing from Arista (librenms#19588)
* Added more defaults to OSPFv3 area fields missing from Arista * CI Fix * Test data update * CI Fix
1 parent aaf07b0 commit 196f695

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

LibreNMS/Modules/Ospfv3.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ private function createNeighbor(int $ospfv3NbrIfIndex, int $ospfv3NbrIfInstId, i
343343

344344
public function fetchAndFillArea(Ospfv3Area $area): void
345345
{
346-
$area->fill(SnmpQuery::context($area->context_name)
346+
$ospf_area = SnmpQuery::context($area->context_name)
347347
->hideMib()->enumStrings()->get([
348348
'OSPFV3-MIB::ospfv3AreaImportAsExtern.' . $area->ospfv3AreaId,
349349
'OSPFV3-MIB::ospfv3AreaSpfRuns.' . $area->ospfv3AreaId,
@@ -359,7 +359,11 @@ public function fetchAndFillArea(Ospfv3Area $area): void
359359
'OSPFV3-MIB::ospfv3AreaNssaTranslatorStabInterval.' . $area->ospfv3AreaId,
360360
'OSPFV3-MIB::ospfv3AreaNssaTranslatorEvents.' . $area->ospfv3AreaId,
361361
'OSPFV3-MIB::ospfv3AreaTEEnabled.' . $area->ospfv3AreaId,
362-
])->valuesByIndex()[$area->ospfv3AreaId] ?? []);
362+
])->valuesByIndex()["$area->ospfv3AreaId"] ?? [];
363+
364+
$ospf_area['ospfv3AreaScopeLsaCksumSum'] ??= 0;
365+
366+
$area->fill($ospf_area);
363367
}
364368

365369
public function fetchAndFillPort(Ospfv3Port $port): void

0 commit comments

Comments
 (0)