is_oob and/or is_primary do not update to false in bulk update #11662

Closed
opened 2025-12-29 21:48:15 +01:00 by adam · 3 comments
Owner

Originally created by @MattBoxIT on GitHub (Sep 30, 2025).

Originally assigned to: @pl0xym0r on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.3.7

Python Version

3.11

Steps to Reproduce

  1. Choose an IP Address with Primary (and/or OOB) status as true
  2. Go to bulk import of IP Addresses
  3. Import id, interface, device, is_oob (and/or is_primary) setting as false
    For instance:
    id, interface, device, is_oob
    744, Eth1, HOSTNAME, false

Expected Behavior

IP Address updated with OOB (and/or Primary) status as False

Observed Behavior

IP Address updated without errors but the status remains True.

It works when the status is False and it is updated to True.

Originally created by @MattBoxIT on GitHub (Sep 30, 2025). Originally assigned to: @pl0xym0r on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.3.7 ### Python Version 3.11 ### Steps to Reproduce 1. Choose an IP Address with Primary (and/or OOB) status as true 2. Go to bulk import of IP Addresses 3. Import id, interface, device, is_oob (and/or is_primary) setting as false For instance: id, interface, device, is_oob 744, Eth1, HOSTNAME, false ### Expected Behavior IP Address updated with OOB (and/or Primary) status as False ### Observed Behavior IP Address updated without errors but the status remains True. It works when the status is False and it is updated to True.
adam added the type: bugstatus: acceptednetboxseverity: low labels 2025-12-29 21:48:15 +01:00
adam closed this issue 2025-12-29 21:48:15 +01:00
Author
Owner

@pl0xym0r commented on GitHub (Oct 9, 2025):

I did the bulk import but forgot the bulk edit, can handle it

@pl0xym0r commented on GitHub (Oct 9, 2025): I did the bulk import but forgot the bulk edit, can handle it
Author
Owner

@jeremystretch commented on GitHub (Oct 9, 2025):

Thanks @pl0xym0r I've assigned this to you.

@jeremystretch commented on GitHub (Oct 9, 2025): Thanks @pl0xym0r I've assigned this to you.
Author
Owner

@pl0xym0r commented on GitHub (Oct 10, 2025):

A bit harder than expected as the parameters are not on the object itself. Where should the logic (update the parent object field) be? In the View? Where should I add the "clean" logic in order to not update IPAddress that has no assigned_object ?

I tried something like for the vlans on an InterfaceBulkedit : 24a83acc34/netbox/dcim/views.py (L2923) which is to update the m2m field once interface is updated but I'm not convinced how to really handle it.

@pl0xym0r commented on GitHub (Oct 10, 2025): A bit harder than expected as the parameters are not on the object itself. Where should the logic (update the parent object field) be? In the View? Where should I add the "clean" logic in order to not update IPAddress that has no assigned_object ? I tried something like for the vlans on an InterfaceBulkedit : https://github.com/netbox-community/netbox/blob/24a83acc34f3b98aedddaac3dd34b2423bc6a977/netbox/dcim/views.py#L2923 which is to update the m2m field once interface is updated but I'm not convinced how to really handle it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11662