[PR #18430] [CLOSED] Fixes #17797 - Update MACAddressSerializer to use MACAddressField #15348

Closed
opened 2025-12-30 00:21:25 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18430
Author: @atownson
Created: 1/17/2025
Status: Closed

Base: mainHead: issue_17797


📝 Commits (1)

  • c15c7d7 Update MACAddressSerializer to use MACAddressField

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 netbox/dcim/api/serializers_/devices.py (+2 -0)

📄 Description

Fixes: #17797

Configured the mac_address field in the MACAddressSerializer to use the MACAddressField class.

The normalization of the mac_address value is configured at: f845b2cf07/netbox/dcim/fields.py (L43) The current configuration is to use a custom uppercase format.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/18430 **Author:** [@atownson](https://github.com/atownson) **Created:** 1/17/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `issue_17797` --- ### 📝 Commits (1) - [`c15c7d7`](https://github.com/netbox-community/netbox/commit/c15c7d72024a4b867ef313be57b93da589ed5461) Update MACAddressSerializer to use MACAddressField ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers_/devices.py` (+2 -0) </details> ### 📄 Description ### Fixes: #17797 Configured the `mac_address` field in the `MACAddressSerializer` to use the `MACAddressField` class. The normalization of the `mac_address` value is configured at: https://github.com/netbox-community/netbox/blob/f845b2cf07cd65a109c46632a2540d3647c1c492/netbox/dcim/fields.py#L43 The current configuration is to use a custom uppercase format. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:21:25 +01:00
adam closed this issue 2025-12-30 00:21:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15348