exception when reassign oob ip for a device. #11341

Closed
opened 2025-12-29 21:43:53 +01:00 by adam · 2 comments
Owner

Originally created by @hanyuwei70 on GitHub (Jul 3, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.3.3

Python Version

3.12

Steps to Reproduce

  1. assign an oob ip to a device interface marked "oob only".
  2. delete this assignment (you need to change oob ip).
  3. assign a new oob ip marked "oob only".

Expected Behavior

it will assign without problem.

Observed Behavior

it will show up

<class 'django.db.utils.IntegrityError'>

duplicate key value violates unique constraint "dcim_device_oob_ip_id_key"
DETAIL:  Key (oob_ip_id)=(319) already exists.

Python 版本: 3.12.3
NetBox 版本: 4.3.3-Docker-3.3.0
插件: 
  netbox_topology_views: 4.3.0

Originally created by @hanyuwei70 on GitHub (Jul 3, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.3.3 ### Python Version 3.12 ### Steps to Reproduce 1. assign an oob ip to a device interface marked "oob only". 2. delete this assignment (you need to change oob ip). 3. assign a new oob ip marked "oob only". ### Expected Behavior it will assign without problem. ### Observed Behavior it will show up ``` <class 'django.db.utils.IntegrityError'> duplicate key value violates unique constraint "dcim_device_oob_ip_id_key" DETAIL: Key (oob_ip_id)=(319) already exists. Python 版本: 3.12.3 NetBox 版本: 4.3.3-Docker-3.3.0 插件: netbox_topology_views: 4.3.0 ```
adam added the type: bugstatus: revisions needed labels 2025-12-29 21:43:53 +01:00
adam closed this issue 2025-12-29 21:43:54 +01:00
Author
Owner

@arthanson commented on GitHub (Jul 7, 2025):

@hanyuwei70 Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

Can you please add clear steps, which menu items and screens you are going to and what fields you are selecting.

@arthanson commented on GitHub (Jul 7, 2025): @hanyuwei70 Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports. Can you please add clear steps, which menu items and screens you are going to and what fields you are selecting.
Author
Owner

@hanyuwei70 commented on GitHub (Jul 10, 2025):

@arthanson Thanks for your time. But I have failed to reproduce it on the same instance. And can be worked around with deletion of related IP. I will close this issue and hope can provide some reference for others.

@hanyuwei70 commented on GitHub (Jul 10, 2025): @arthanson Thanks for your time. But I have failed to reproduce it on the same instance. And can be worked around with deletion of related IP. I will close this issue and hope can provide some reference for others.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11341