Error on deletion of IP Addresses if filtered by tag #5452

Closed
opened 2025-12-29 19:28:14 +01:00 by adam · 2 comments
Owner

Originally created by @cybarox on GitHub (Oct 1, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.0.4

Python version

3.8

Steps to Reproduce

  1. Create a tag
  2. create one (or more) IP address(es) with assigned tag
  3. filter IP addresses via tag
  4. check mark all ips
  5. click delete
  6. confirm deletion
  7. Error

Expected Behavior

Selected IPs get deleted

Observed Behavior

Error on delete:

<class 'KeyError'>

'tag'

Python version: 3.8.10
NetBox version: 3.0.4
Originally created by @cybarox on GitHub (Oct 1, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.0.4 ### Python version 3.8 ### Steps to Reproduce 1. Create a tag 2. create one (or more) IP address(es) with assigned tag 3. filter IP addresses via tag 4. check mark all ips 5. click delete 6. confirm deletion 7. Error ### Expected Behavior Selected IPs get deleted ### Observed Behavior Error on delete: ``` <class 'KeyError'> 'tag' Python version: 3.8.10 NetBox version: 3.0.4 ```
adam added the type: bugstatus: accepted labels 2025-12-29 19:28:14 +01:00
adam closed this issue 2025-12-29 19:28:14 +01:00
Author
Owner

@cybarox commented on GitHub (Oct 1, 2021):

Update: The IP addresses are deleted, but the search form is not reset and throws an error because there are no more IP objects with this tag.

@cybarox commented on GitHub (Oct 1, 2021): Update: The IP addresses are deleted, but the search form is not reset and throws an error because there are no more IP objects with this tag.
Author
Owner

@jeremystretch commented on GitHub (Oct 1, 2021):

  1. got to demo.netbox.dev

Per the bug report template:

Additionally, do not rely on the demo instance for reproducing suspected bugs, as its data is prone to modification or deletion at any time.

Please revise your steps above to not rely on any demo data.

@jeremystretch commented on GitHub (Oct 1, 2021): > 1. got to demo.netbox.dev Per the bug report template: > Additionally, **do not rely on the demo instance** for reproducing suspected bugs, as its data is prone to modification or deletion at any time. Please revise your steps above to not rely on any demo data.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5452