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']; |
Attachments
Activity
Resolution | New: Fixed [ 1 ] | |
Status | Original: Pending Response [ 10000 ] | New: Resolved [ 5 ] |
Comment |
[ _*General questions and device support can be discussed in [our Discord channel, click here to join|https://discord.gg/GjpNXKWm8W].*_ ---- Please make and attach additional information about the device: * full snmp dump from device: {noformat} snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1 > myagent.snmpwalk snmpwalk -v2c -c <community> -t 3 -Cc --hexOutputLength=0 -Ih -ObentxU <hostname> .1.3.6.1.4.1 >> myagent.snmpwalk {noformat} _If device not support SNMP version 2c, replace -v2c with -v1._ * If you have problems with discovery or poller processes, please do and attach these debugs: {noformat} ./discovery.php -d -h <device> ./poller.php -d -h <device> {noformat} * additionally attach device and/or vendor specific MIB files ---- {color:#505F79}_This comment is added automatically._{color} ] |
Component/s | New: Default [ 10900 ] |
Assignee | Original: Adam Armstrong [ adama ] | New: Mike Stupalov [ landy ] |
Status | Original: Open [ 1 ] | New: Pending Response [ 10000 ] |
Fixed in r13495.