IP Address Interface Assignment silently discards selected Device if no Interface is selected #7499

Closed
opened 2025-12-29 20:24:18 +01:00 by adam · 3 comments
Owner

Originally created by @clerie on GitHub (Jan 12, 2023).

NetBox version

v3.4.2

Python version

3.8

Steps to Reproduce

  1. Create a Device
  2. Fill out required fields
  3. Save Device
  4. Create IP Address
  5. Fill out required fields
  6. Choose the created Device in the Interface Assignment
  7. Do not choose any Interface in the Interface Assignment
  8. Save IP Address

Expected Behavior

When saving the IP Address object the form gets validated and at this point I expect to get a warning which tells me to choose an interface in case I want to assign this IP Address to the Device, else to clear the device field.

Observed Behavior

The device selection gets silently discarded. Users can't find the IP Address they have "assigned" to a Device anywhere. Only on editing the IP Address again shows that the value never got stored.

Originally created by @clerie on GitHub (Jan 12, 2023). ### NetBox version v3.4.2 ### Python version 3.8 ### Steps to Reproduce 1. Create a Device 2. Fill out required fields 3. Save Device 4. Create IP Address 5. Fill out required fields 6. Choose the created Device in the Interface Assignment 7. Do not choose any Interface in the Interface Assignment 8. Save IP Address ### Expected Behavior When saving the IP Address object the form gets validated and at this point I expect to get a warning which tells me to choose an interface in case I want to assign this IP Address to the Device, else to clear the device field. ### Observed Behavior The device selection gets silently discarded. Users can't find the IP Address they have "assigned" to a Device anywhere. Only on editing the IP Address again shows that the value never got stored.
adam closed this issue 2025-12-29 20:24:18 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 12, 2023):

I expect to get a warning which tells me to choose an interface in case I want to assign this IP Address to the Device, else to clear the device field.

We're working an improvement for this in #10054, which will replace the current set of form fields and hopefully make the process of selecting a related object much more natural. I'm not sure there's anything we can do before that to improve this that wouldn't require an unjustifiable amount of development effort, but I'm open to suggestions.

@jeremystretch commented on GitHub (Jan 12, 2023): > I expect to get a warning which tells me to choose an interface in case I want to assign this IP Address to the Device, else to clear the device field. We're working an improvement for this in #10054, which will replace the current set of form fields and hopefully make the process of selecting a related object much more natural. I'm not sure there's anything we can do before that to improve this that wouldn't require an unjustifiable amount of development effort, but I'm open to suggestions.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 13, 2023):

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. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Apr 13, 2023): 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. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@jeremystretch commented on GitHub (May 2, 2023):

Closing this out as no specific improvements have been proposed.

@jeremystretch commented on GitHub (May 2, 2023): Closing this out as no specific improvements have been proposed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7499