Filter IP Address by assigned_object__empty not working #9445

Closed
opened 2025-12-29 20:50:02 +01:00 by adam · 2 comments
Owner

Originally created by @aaronhuff on GitHub (Apr 5, 2024).

Deployment Type

Self-hosted

NetBox Version

v3.7.4

Python Version

3.8

Steps to Reproduce

  1. GET /api/ipam/ip-addresses/?assigned_object__empty=False
    or
  2. IPAddress.objects.filter(assigned_object__empty=False)

Expected Behavior

Returns ip addresses that assigned object is not empty/null.

Observed Behavior

Returns all ip addresses. Same result with = True.

Originally created by @aaronhuff on GitHub (Apr 5, 2024). ### Deployment Type Self-hosted ### NetBox Version v3.7.4 ### Python Version 3.8 ### Steps to Reproduce 1. GET /api/ipam/ip-addresses/?assigned_object__empty=False or 2. IPAddress.objects.filter(assigned_object__empty=False) ### Expected Behavior Returns ip addresses that assigned object is not empty/null. ### Observed Behavior Returns all ip addresses. Same result with = True.
adam closed this issue 2025-12-29 20:50:03 +01:00
Author
Owner

@arthanson commented on GitHub (Apr 5, 2024):

@aaronhuff I think you want ?assigned=false ? Does that work for you?

@arthanson commented on GitHub (Apr 5, 2024): @aaronhuff I think you want ?assigned=false ? Does that work for you?
Author
Owner

@aaronhuff commented on GitHub (Apr 5, 2024):

@aaronhuff I think you want ?assigned=false ? Does that work for you?

That's what I was looking for, Thanks! Is that anywhere in the docs, that that is how I was supposed to filter it?

@aaronhuff commented on GitHub (Apr 5, 2024): > @aaronhuff I think you want ?assigned=false ? Does that work for you? That's what I was looking for, Thanks! Is that anywhere in the docs, that that is how I was supposed to filter it?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9445