Entity DS does not fetch SNMP Primary IP or ifIndex for Nodes

Description

The Entity DS returns empty values for columns "Primary IP Interface" and "Primary SNMP ifIndex", even on nodes that have such interfaces designated. It does not seem to matter whether the node is auto-provisioned or from a requisition.

These items do not appear in the XML or JSON output of /api/v2/node/:nodeId without any query string; perhaps we need to ask for recursion?

Environment

https://mynms.opennms.com/Ticket/Display.html?id=6313 opennms-helm-4.0.0-1.noarch grafana-6.3.6-1.x86_64

Lucidchart Diagrams

Activity

Benjamin Reed August 18, 2021 at 2:21 PM

Benjamin Reed June 30, 2021 at 7:28 PM

Oof, well this was a rabbit hole... Apparently it's not possible to query an OnmsIpInterface based on its primary type, the ReST API isn't set up for it, and that attribute is... very weird because it's an @Embedded object type.

This is probably going to require changes on the OpenNMS backend, and is much more work than it seemed like at first. Unless we want to query every IpInterface on the node, which is going to destroy performance.

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Sprint

HB Grooming Date

HB Backlog Status

Priority

PagerDuty

Created October 24, 2019 at 4:32 PM
Updated August 25, 2021 at 1:58 PM
Resolved August 25, 2021 at 1:58 PM