[PR #18367] [MERGED] Fixes #18363: Fix assignment of MAC addresses to interfaces via REST API #15333

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18367
Author: @jeremystretch
Created: 1/9/2025
Status: Merged
Merged: 1/9/2025
Merged by: @jeremystretch

Base: mainHead: 18363-macaddress-api


📝 Commits (2)

  • 91562b2 Fixes #18363: Fix assignment of MAC addresses to interfaces via REST API
  • 1ed7c45 Add missing API & view tests

📊 Changes

3 files changed (+96 additions, -2 deletions)

View changed files

📝 netbox/dcim/api/serializers_/devices.py (+2 -2)
📝 netbox/dcim/tests/test_api.py (+43 -0)
📝 netbox/dcim/tests/test_views.py (+51 -0)

📄 Description

Fixes: #18363

  • Add missing field assigned_object_id to REST API serializer for MACAddress
  • Add missing API & view tests

🔄 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/18367 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/9/2025 **Status:** ✅ Merged **Merged:** 1/9/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `18363-macaddress-api` --- ### 📝 Commits (2) - [`91562b2`](https://github.com/netbox-community/netbox/commit/91562b205a0eaadf7c8db969a819a11d48c07a84) Fixes #18363: Fix assignment of MAC addresses to interfaces via REST API - [`1ed7c45`](https://github.com/netbox-community/netbox/commit/1ed7c45fb9e53d0bf1244783359aac97daec8f5b) Add missing API & view tests ### 📊 Changes **3 files changed** (+96 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/serializers_/devices.py` (+2 -2) 📝 `netbox/dcim/tests/test_api.py` (+43 -0) 📝 `netbox/dcim/tests/test_views.py` (+51 -0) </details> ### 📄 Description ### Fixes: #18363 - Add missing field `assigned_object_id` to REST API serializer for MACAddress - Add missing API & view tests --- <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:20 +01:00
adam closed this issue 2025-12-30 00:21:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15333