Details
-
Bug
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
None
Description
OSPF page does not show correct interfaces list when device has multiple OSPF areas, the array port_params for ospfAreaId is being appended instead of overwriting:
file: html/pages/device/routing/ospf.inc.php
/// Loop Areas
|
foreach (dbFetchRows("SELECT * FROM `ospf_areas` WHERE `device_id` = ? AND `ospfVersionNumber` = ?", [$device['device_id'], $ospf_version]) as $area) { |
|
$port_params[] = $area['ospfAreaId']; <<< -it is appending here |
|
changing to below fixes it (as ospfAreaId is the 3rd variable in the query below it):
$port_params[3] = $area['ospfAreaId']; |