GraphQL interface filter 'kind' no longer works since 4.3 #11293

Closed
opened 2025-12-29 21:43:09 +01:00 by adam · 6 comments
Owner

Originally created by @llamafilm on GitHub (Jun 20, 2025).

Originally assigned to: @llamafilm on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.3.2

Python Version

3.12

Steps to Reproduce

Run this GraphQL query

{
  interface_list(filters: {kind: "physical"}) {
    id
  }
}

Expected Behavior

This worked in 4.2.4 and older versions

Observed Behavior

In 4.3.2 it fails

  "message": "Field 'kind' is not defined by type 'InterfaceFilter'. Did you mean 'AND' or 'id'?",
Originally created by @llamafilm on GitHub (Jun 20, 2025). Originally assigned to: @llamafilm on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.3.2 ### Python Version 3.12 ### Steps to Reproduce Run this GraphQL query ``` { interface_list(filters: {kind: "physical"}) { id } } ``` ### Expected Behavior This worked in 4.2.4 and older versions ### Observed Behavior In 4.3.2 it fails "message": "Field 'kind' is not defined by type 'InterfaceFilter'. Did you mean 'AND' or 'id'?",
adam added the type: bugstatus: acceptedtopic: GraphQLseverity: low labels 2025-12-29 21:43:09 +01:00
adam closed this issue 2025-12-29 21:43:10 +01:00
Author
Owner

@llamafilm commented on GitHub (Jun 20, 2025):

As a clunky workaround, I tried listing all the interface types with an OR statement. But I can't figure out how to combine more than 2 conditions this way. This query works with just 2 conditions:

{
  interface_list(filters: {
    type: TYPE_100BASE_TX
    OR: {type: TYPE_1000BASE_TX}
  }) {
    id
    name
    type
  }
}
@llamafilm commented on GitHub (Jun 20, 2025): As a clunky workaround, I tried listing all the interface types with an OR statement. But I can't figure out how to combine more than 2 conditions this way. This query works with just 2 conditions: ``` { interface_list(filters: { type: TYPE_100BASE_TX OR: {type: TYPE_1000BASE_TX} }) { id name type } } ```
Author
Owner

@arthanson commented on GitHub (Jun 20, 2025):

looks like there are a couple filters on interface that are missing, including virtual_chassis and kind.

@arthanson commented on GitHub (Jun 20, 2025): looks like there are a couple filters on interface that are missing, including virtual_chassis and kind.
Author
Owner

@unvented-carat-dimmed commented on GitHub (Jun 25, 2025):

Seemingly "connected", too. Maybe "cabled" as well, I believe that was a filter in the past, not sure if that one is still in use

@unvented-carat-dimmed commented on GitHub (Jun 25, 2025): Seemingly "connected", too. Maybe "cabled" as well, I believe that was a filter in the past, not sure if that one is still in use
Author
Owner

@llamafilm commented on GitHub (Sep 6, 2025):

I volunteer to fix this, can you assign to me please?

I'll add connected in the same PR if that's ok.

@llamafilm commented on GitHub (Sep 6, 2025): I volunteer to fix this, can you assign to me please? I'll add connected in the same PR if that's ok.
Author
Owner

@llamafilm commented on GitHub (Sep 6, 2025):

I've never used virtual chassis at all so I didn't feel comfortable including that in this PR.

@llamafilm commented on GitHub (Sep 6, 2025): I've never used virtual chassis at all so I didn't feel comfortable including that in this PR.
Author
Owner

@jnovinger commented on GitHub (Sep 8, 2025):

I'll file a follow up for the virtual_chassis filter. #20172 is already filed for the cabled filter.

@jnovinger commented on GitHub (Sep 8, 2025): I'll file a follow up for the `virtual_chassis` filter. #20172 is already filed for the `cabled` filter.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11293