netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Remove obsolete `device_role` field from REST API serializer for device model

Open jeremystretch opened this issue 1 year ago • 0 comments

Proposed Changes

Drop the device_role property from the Device model, and the field from DeviceSerializer. (It has been superseded by role.)

Justification

The model field was renamed to role under #6391 in v3.6; this field was retained on the serializer for backward compatibility.

Impact

Any REST API clients which still reference the device_role field must be updated to use the role field, which contains the same data (and is writable).

jeremystretch avatar Feb 27 '24 21:02 jeremystretch