netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.03k stars 2.57k forks source link

Updating an interface via the api and sending lowercase mac_address creates a pointless changelog #17797

Open ITJamie opened 3 days ago

ITJamie commented 3 days ago

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.1.4

Python Version

3.12

Steps to Reproduce

create an interface on a device. set a mac address. via the api update the interface with the same mac address but send it in lowercase form instead of uppercase form

Expected Behavior

if the mac addresses match (ignoring case), no changelog should be made

Observed Behavior

a change log is created showing the mac_address being set to lowercase. but its stored in the db in uppercase. so there was no need for the changelog being created

ITJamie commented 3 days ago
Screenshot 2024-10-16 at 20 22 04

Example of the changelog thats created. but viewing the interface directly after this changelog shows that its stored as uppercase