Face not getting cleared when position is removed #7018

Closed
opened 2025-12-29 19:47:56 +01:00 by adam · 0 comments
Owner

Originally created by @seanwessmith on GitHub (Sep 23, 2022).

NetBox version

v2.10.4

Python version

3.10

Steps to Reproduce

  1. Create a device and set position and face.
  2. Remove the device position.
  3. Face is still set to the previous value of 'front' or 'rear'
  4. API has no option to remove the face value

Expected Behavior

  1. Create a device and set position and face.
  2. Remove the device position.
  3. Face is now undefined
    and

Observed Behavior

Calling the /api/dcim/devices/{device_id} endpoint does nothing when setting face to null or empty string. I would like an option to pass null or empty string to remove the face value if position is undefined.

Originally created by @seanwessmith on GitHub (Sep 23, 2022). ### NetBox version v2.10.4 ### Python version 3.10 ### Steps to Reproduce 1. Create a device and set position and face. 2. Remove the device position. 3. Face is still set to the previous value of 'front' or 'rear' 4. API has no option to remove the face value ### Expected Behavior 1. Create a device and set position and face. 2. Remove the device position. 3. Face is now undefined and ### Observed Behavior Calling the /api/dcim/devices/{device_id} endpoint does nothing when setting face to null or empty string. I would like an option to pass null or empty string to remove the face value if position is undefined.
adam closed this issue 2025-12-29 19:47:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7018