[PR #18945] [MERGED] Fixes #18887: Allows VMInterface object custom field on Prefix #15485

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18945
Author: @jnovinger
Created: 3/18/2025
Status: Merged
Merged: 3/20/2025
Merged by: @arthanson

Base: mainHead: 18887-custom-field-object


📝 Commits (1)

  • 056772a Fixes #18887: Allows VMInterface object custom field on Prefix

📊 Changes

2 files changed (+64 additions, -10 deletions)

View changed files

📝 netbox/virtualization/api/serializers_/virtualmachines.py (+25 -8)
📝 netbox/virtualization/tests/test_api.py (+39 -2)

📄 Description

Fixes: #18887

I'm not sure if this is the best way to fix this, but seems like the most localized place to fix it. I included a regression test to capture the new behavior.


🔄 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/18945 **Author:** [@jnovinger](https://github.com/jnovinger) **Created:** 3/18/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `18887-custom-field-object` --- ### 📝 Commits (1) - [`056772a`](https://github.com/netbox-community/netbox/commit/056772a41bc80d9051742a8cbed0f1bb98691822) Fixes #18887: Allows VMInterface object custom field on Prefix ### 📊 Changes **2 files changed** (+64 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `netbox/virtualization/api/serializers_/virtualmachines.py` (+25 -8) 📝 `netbox/virtualization/tests/test_api.py` (+39 -2) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #18887 I'm not sure if this is the best way to fix this, but seems like _the most localized place to fix it_. I included a regression test to capture the new behavior. <!-- Please include a summary of the proposed changes below. --> --- <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:22:12 +01:00
adam closed this issue 2025-12-30 00:22:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15485