-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cascade delete IP addresses with interfaces #6015
Comments
We generally avoid any workflows wherein data can be deleted unexpectedly. I personally would prefer to disable the deletion of an interface with assigned IP addresses, but it's open for discussion. |
I think I'd side with @jeremystretch on this one. Deleting the IP just because the interface got deleted would be unexpected behavior to me. However, there are times where the proposed functionality could be useful. Perhaps some sort of "deleting this interface / device will leave orphaned IPs (1.1.1.1, 2.3.4.5, etc). Delete these too?" prompt would be useful, but barring that if I had to choose between "auto delete IPs" and "block delete unless IPs are removed" I'd go with blocking the delete operation. |
I agree with @ljb2of3, presenting the option, especially when the objects will be orphaned, would be nice, but otherwise I think one of NetBox’s strong suites is making it difficult to accidentally lose data. |
Somewhat related to #5418 |
The best solution here might be to present the option to the user when an interface is being deleted. We should be able to add a checkbox labeled "delete n assigned IP addresses" to the confirmation form. |
@jeremystretch , yes, good idea |
I like this idea. It gives you the option to delete or not, and seeing the
"delete n assigned IP addresses?" message works as a reminder that you may
be deleting the wrong thing if you didn't expect to see it.
…On Tue, May 4, 2021 at 10:27 AM Jeremy Stretch ***@***.***> wrote:
The best solution here might be to present the option to the user when an
interface is being deleted. We should be able to add a checkbox labeled
"delete *n* assigned IP addresses" to the confirmation form.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6015 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMH6T5FSPUYFP2N5LMG4ALTMAG57ANCNFSM4ZOJF7CQ>
.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide. |
This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary. |
NetBox version
v.2.10.6
Feature type
Change to existing functionality
Proposed functionality
Steps to Reproduce:
I propose to change the current behavior when removing an interface with assigned IP.
Now it occurs cascading IP address deletion with device and its interfaces despite user has prohibition on IP deletion.
Use case
Previously added IP address will return to the list of IP addresses and can be assigned instead of creating it again
Database changes
No response
External dependencies
No response
Based on: #5945
The text was updated successfully, but these errors were encountered: