"Unlink" button in interface table #5541

Closed
opened 2025-12-29 19:29:08 +01:00 by adam · 5 comments
Owner

Originally created by @hagbarddenstore on GitHub (Oct 21, 2021).

NetBox version

v3.0.8

Feature type

Change to existing functionality

Proposed functionality

In addition to the Delete button in the interface table on Virtual Machine/Device, add a button to disassociate an IP from the interface. The Delete button currently deletes the IP Address object from the database, something which might not always be desirable.

Use case

The use case is to be able to keep history of the IP Address, which Devices/Virtual Machines it has been associated with and to be able to move an IP Address from thing A to thing B, without having to re-create it.

Database changes

No change required, since the behaviour exists today, but from the other direction. (You can Edit an IP Address and de-select the associated object.)

External dependencies

None

Originally created by @hagbarddenstore on GitHub (Oct 21, 2021). ### NetBox version v3.0.8 ### Feature type Change to existing functionality ### Proposed functionality In addition to the Delete button in the interface table on Virtual Machine/Device, add a button to disassociate an IP from the interface. The Delete button currently deletes the IP Address object from the database, something which might not always be desirable. ### Use case The use case is to be able to keep history of the IP Address, which Devices/Virtual Machines it has been associated with and to be able to move an IP Address from thing A to thing B, without having to re-create it. ### Database changes No change required, since the behaviour exists today, but from the other direction. (You can Edit an IP Address and de-select the associated object.) ### External dependencies None
adam added the type: feature label 2025-12-29 19:29:08 +01:00
adam closed this issue 2025-12-29 19:29:09 +01:00
Author
Owner

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

Just so I'm 100% clear on the proposed placement, would you mind attaching a screenshot?

@jeremystretch commented on GitHub (Oct 21, 2021): Just so I'm 100% clear on the proposed placement, would you mind attaching a screenshot?
Author
Owner

@hagbarddenstore commented on GitHub (Oct 21, 2021):

Screenshot 2021-10-21 at 15 49 26

This is what our current Netbook looks like (Yes, I know it's old, but shows the idea)

It's the yellow Unlink button that's interesting.

@hagbarddenstore commented on GitHub (Oct 21, 2021): <img width="1884" alt="Screenshot 2021-10-21 at 15 49 26" src="https://user-images.githubusercontent.com/1156831/138291575-f30f215a-4cc7-4fe7-b908-0d8029eacf89.png"> This is what our current Netbook looks like (Yes, I know it's old, but shows the idea) It's the yellow Unlink button that's interesting.
Author
Owner

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

It seems you're still running an old v2.x release. The v3.0 UI was completely overhauled, and IP addresses no longer appear in the same place.

@jeremystretch commented on GitHub (Oct 21, 2021): It seems you're still running an old v2.x release. The v3.0 UI was completely overhauled, and IP addresses no longer appear in the same place.
Author
Owner

@hiddenman commented on GitHub (Oct 25, 2021):

It would be also great to have a class method for that, like unlink() instead of this raw code:
set assigned_object_type to None and assigned_object_id to 0.

@hiddenman commented on GitHub (Oct 25, 2021): It would be also great to have a class method for that, like unlink() instead of this raw code: `set assigned_object_type to None and assigned_object_id to 0. `
Author
Owner

@jeremystretch commented on GitHub (Nov 11, 2021):

Closing this as it's no longer pertinent to the UI in v3.0 and later. (IP addresses no longer appear in a nested table below interfaces.)

@jeremystretch commented on GitHub (Nov 11, 2021): Closing this as it's no longer pertinent to the UI in v3.0 and later. (IP addresses no longer appear in a nested table below interfaces.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5541