[PR #20730] [MERGED] Closes #14171: Add VLAN fields to Interface and VMInterface CSV import #16031

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20730
Author: @pheus
Created: 10/31/2025
Status: Merged
Merged: 10/31/2025
Merged by: @jnovinger

Base: mainHead: 14171-add-vlan-assignment-during-interface-import


📝 Commits (1)

  • 8adaa4e feat(forms): Add VLAN-related fields to import forms

📊 Changes

4 files changed (+126 additions, -19 deletions)

View changed files

📝 netbox/dcim/forms/bulk_import.py (+48 -5)
📝 netbox/dcim/tests/test_views.py (+13 -4)
📝 netbox/virtualization/forms/bulk_import.py (+52 -6)
📝 netbox/virtualization/tests/test_views.py (+13 -4)

📄 Description

Fixes: #14171

Adds support for VLAN group, untagged VLAN, tagged VLANs, and Q‑in‑Q Service VLAN (SVLAN) columns in the CSV import for Interface and VMInterface.

  • Updates queryset filtering so imports respect VLAN groups and scope.
  • Extends CSV import tests to cover both create and update‑by‑ID cases.

🔄 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/20730 **Author:** [@pheus](https://github.com/pheus) **Created:** 10/31/2025 **Status:** ✅ Merged **Merged:** 10/31/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `main` ← **Head:** `14171-add-vlan-assignment-during-interface-import` --- ### 📝 Commits (1) - [`8adaa4e`](https://github.com/netbox-community/netbox/commit/8adaa4e87781ba74fd6c3e48b92b46be97c54797) feat(forms): Add VLAN-related fields to import forms ### 📊 Changes **4 files changed** (+126 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/forms/bulk_import.py` (+48 -5) 📝 `netbox/dcim/tests/test_views.py` (+13 -4) 📝 `netbox/virtualization/forms/bulk_import.py` (+52 -6) 📝 `netbox/virtualization/tests/test_views.py` (+13 -4) </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: #14171 Adds support for VLAN group, untagged VLAN, tagged VLANs, and Q‑in‑Q Service VLAN (SVLAN) columns in the CSV import for **Interface** and **VMInterface**. - Updates queryset filtering so imports respect VLAN groups and scope. - Extends CSV import tests to cover both create and update‑by‑ID cases. --- <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:25:25 +01:00
adam closed this issue 2025-12-30 00:25: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#16031