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

API Address Filtering for device_id not working properly

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Professional Edition
    • API
    • None

    Description

      If I try to query the API endpoint "address" for a specific device_id like

      "https://observium.domain/api/v0/address/?device_id=2235"

      Then 0 results are returned.

       

      Without the query the expected address is returned in the results.

       

      If i query the database manually, i can see the address:

       

      Its a vlan interface:

       

      But the vlans are filtered out from the ports - may be thats a hint.

      Attachments

        Activity

          [OBS-3739] API Address Filtering for device_id not working properly

          Fixed in r11297.

          landy Mike Stupalov added a comment - Fixed in r11297.

          This seems to be because addresses attached to ports that are filtered during discovery have the port_id set to 0, so the query fails to link them to the other tables and they aren't included.

          I'll need to work out how to restructure the query.

          adama Adam Armstrong added a comment - This seems to be because addresses attached to ports that are filtered during discovery have the port_id set to 0, so the query fails to link them to the other tables and they aren't included. I'll need to work out how to restructure the query.

          People

            landy Mike Stupalov
            FloMeyer Florian Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: