Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • None
    • None
    • Default
    • 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

          [OBS-4813] Fix OSPF display for multiple areas
          landy Mike Stupalov made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Pending Response [ 10000 ] New: Resolved [ 5 ]

          Fixed in r13495.

          landy Mike Stupalov added a comment - Fixed in r13495.
          landy Mike Stupalov made changes -
          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} ]
          bot Observium Bot made changes -
          Component/s New: Default [ 10900 ]
          bot Observium Bot made changes -
          Assignee Original: Adam Armstrong [ adama ] New: Mike Stupalov [ landy ]
          bot Observium Bot made changes -
          Status Original: Open [ 1 ] New: Pending Response [ 10000 ]
          ali Ali D created issue -

          People

            landy Mike Stupalov
            ali Ali D
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: