Closes #20172: Add cabled filter for DCIM interfaces in GraphQL #466

Closed
opened 2026-04-05 16:34:30 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 1/26/2026

Fixes: #20172

This PR re-introduces a cabled Boolean filter for DCIM Interface objects in the GraphQL schema.

It enables callers to filter interfaces based on whether they have a cable attached:

  • cabled: true → return only interfaces with a cable
  • cabled: false → return only interfaces without a cable

This is particularly useful for queries that traverse cable peers, as it helps avoid returning uncabled interfaces and can reduce response size (often improving query performance).

Thanks for reviewing!

*Originally created by @pheus on 1/26/2026* ### Fixes: #20172 This PR re-introduces a `cabled` **Boolean** filter for DCIM **Interface** objects in the GraphQL schema. It enables callers to filter interfaces based on whether they have a cable attached: - `cabled: true` → return only interfaces with a cable - `cabled: false` → return only interfaces without a cable This is particularly useful for queries that traverse cable peers, as it helps avoid returning uncabled interfaces and can reduce response size (often improving query performance). Thanks for reviewing!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#466