GraphQL interface_list filtering by type does not work #9778

Closed
opened 2025-12-29 21:22:31 +01:00 by adam · 2 comments
Owner

Originally created by @dmulyalin on GitHub (Jun 1, 2024).

Deployment Type

Self-hosted

NetBox Version

v4.0.3

Python Version

3.10

Steps to Reproduce

  1. Create device in netbox (fceos4 in this example)
  2. Create interface of type LAG
  3. Create interface of any other non-lag type
  4. run query
{
  interface: interface_list(
    filters: {
      device: ["fceos4"], 
      type: {exact: "lag"}
    }
  ) {
    name
    type
    device {
      name
    }
  }
}

or this variant:

{
  interface: interface_list(
    filters: {
      device: ["fceos4"], 
      AND: {type: {exact: "lag"}}
    }
  ) {
    name
    type
    device {
      name
    }
  }
}

Expected Behavior

Only should return interface of type lag

Observed Behavior

Returns device interface of all types ignoring the filter.

Originally created by @dmulyalin on GitHub (Jun 1, 2024). ### Deployment Type Self-hosted ### NetBox Version v4.0.3 ### Python Version 3.10 ### Steps to Reproduce 1. Create device in netbox (fceos4 in this example) 2. Create interface of type LAG 3. Create interface of any other non-lag type 4. run query ``` { interface: interface_list( filters: { device: ["fceos4"], type: {exact: "lag"} } ) { name type device { name } } } ``` or this variant: ``` { interface: interface_list( filters: { device: ["fceos4"], AND: {type: {exact: "lag"}} } ) { name type device { name } } } ``` ### Expected Behavior Only should return interface of type `lag` ### Observed Behavior Returns device interface of all types ignoring the filter.
adam added the type: bugstatus: needs ownerseverity: low labels 2025-12-29 21:22:31 +01:00
adam closed this issue 2025-12-29 21:22:31 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 3, 2024):

Confirmed on v4.0.3. Wonder if it's a similar issue to #16261.

@jeremystretch commented on GitHub (Jun 3, 2024): Confirmed on v4.0.3. Wonder if it's a similar issue to #16261.
Author
Owner

@arthanson commented on GitHub (Jun 4, 2024):

This is actually a dupe of #16024 closing this one

@arthanson commented on GitHub (Jun 4, 2024): This is actually a dupe of #16024 closing this one
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9778