Skip to content

[GraphQL] Only one primary IP is shown when querying #18329

Closed
@freym

Description

@freym

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.2.0

Python Version

3.12

Steps to Reproduce

  1. Create multiple Devices and assign different IPs to this devices.
  2. Mark these IPs as primary for the device.
  3. Run this GraphQL query:
{
  device_list {
    primary_ip4 {
      id
      display
    }
  }
}

Expected Behavior

A list with all primary IPs should be displayed

Observed Behavior

Only the first primary IP is displayed. All other IPs are NULL.

Example:
IPs:

  • 192.168.1.1
  • 192.168.1.2
  • 192.168.1.3

Only 192.168.1.1 is displayed, when you unmark this IP, 192.168.1.2 is displayed when running the query.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions