Cascade delete IP addresses with interfaces #4640

Closed
opened 2025-12-29 19:19:02 +01:00 by adam · 1 comment
Owner

Originally created by @proudbro on GitHub (Mar 9, 2021).

NetBox version

v.2.10.5

Python version

3.6

Steps to Reproduce

  1. Create any device with Interfaces components
  2. Add IP address on interface
  3. Delete Device

Expected Behavior

There is no cascade delete. Previously added IP address will return to the list of IP addresses and can be assigned again

Observed Behavior

It occurs cascading IP address deletion with device and interfaces

This bug looks especially strange if I create "TEST" user with prohibition on IP deletion and do the same steps to reproduce.
The address will be deleted again. But "TEST" user can't delete adresses via GUI.

Originally created by @proudbro on GitHub (Mar 9, 2021). ### NetBox version v.2.10.5 ### Python version 3.6 ### Steps to Reproduce 1. Create any device with Interfaces components 2. Add IP address on interface 3. Delete Device ### Expected Behavior There is no cascade delete. Previously added IP address will return to the list of IP addresses and can be assigned again ### Observed Behavior It occurs cascading IP address deletion with device and interfaces This bug looks especially strange if I create "TEST" user with prohibition on IP deletion and do the same steps to reproduce. The address will be deleted again. But "TEST" user can't delete adresses via GUI.
adam added the type: bug label 2025-12-29 19:19:02 +01:00
adam closed this issue 2025-12-29 19:19:02 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 17, 2021):

There is no cascade delete. Previously added IP address will return to the list of IP addresses and can be assigned again

This is expected behavior, specifically chosen to avoid the unintentional loss of data. If you'd like to change it, please submit a feature request citing your use case and justifying the risk for the community to review.

@jeremystretch commented on GitHub (Mar 17, 2021): > There is no cascade delete. Previously added IP address will return to the list of IP addresses and can be assigned again This is expected behavior, specifically chosen to avoid the unintentional loss of data. If you'd like to change it, please submit a feature request citing your use case and justifying the risk for the community to review.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4640