Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4813

Fix OSPF display for multiple areas

    XMLWordPrintable

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: