[PR #17707] [CLOSED] Fixes: #7336 - VLAN Translation #15167

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17707
Author: @bctiemann
Created: 10/8/2024
Status: Closed

Base: developHead: 7336-vlan-translation


📝 Commits (10+)

  • c60a0f4 16136 remove Django Admin (#17619)
  • 8cd0a32 16783 Add status field to InventoryItem (#17627)
  • 2c68aca 17195 Add color to PowerOutlet (#17623)
  • 1969f0d fix migrations
  • aaa166a VLANTranslationPolicy and VLANTranslationRule models and all associated UI classes
  • f853279 Change VLANTranslationPolicy to a PrimaryModel and make name unique
  • 3f469b0 17476 Upgrade to Django 5.1 (#17620)
  • ed1327e 16546 define get_absolute_url method in NetBoxModel (#17693)
  • e06262e Add serializer classes to InterfaceSerializer
  • bc597c3 Closes #17472: Deprecate the staged changes API

📊 Changes

115 files changed (+1185 additions, -501 deletions)

View changed files

📝 docs/configuration/miscellaneous.md (+0 -8)
📝 docs/models/circuits/circuit.md (+6 -0)
📝 docs/models/dcim/inventoryitem.md (+4 -0)
📝 docs/models/dcim/poweroutlet.md (+4 -0)
📝 docs/models/extras/branch.md (+3 -0)
📝 docs/models/extras/stagedchange.md (+3 -0)
📝 docs/plugins/development/staged-changes.md (+2 -2)
📝 netbox/circuits/api/serializers_/circuits.py (+3 -1)
📝 netbox/circuits/filtersets.py (+1 -1)
📝 netbox/circuits/forms/bulk_edit.py (+13 -0)
📝 netbox/circuits/forms/bulk_import.py (+8 -1)
📝 netbox/circuits/forms/filtersets.py (+12 -1)
📝 netbox/circuits/forms/model_forms.py (+13 -3)
netbox/circuits/migrations/0045_circuit_distance.py (+28 -0)
📝 netbox/circuits/models/circuits.py (+2 -10)
📝 netbox/circuits/models/providers.py (+0 -9)
📝 netbox/circuits/tables/circuits.py (+1 -0)
📝 netbox/circuits/tests/test_filtersets.py (+12 -3)
📝 netbox/core/models/data.py (+0 -3)
📝 netbox/dcim/api/serializers_/device_components.py (+6 -4)

...and 80 more files

📄 Description

Fixes: #7336

Adds VLANTranslationPolicy and VLANTranslationRule models and all associated UI visualization classes. Provides the ability to associate a VLAN translation policy and all its associated translation rules with a given interface, e.g.

Interface 1:
  Policy 1:
  - 100 -> 200
  - 101 -> 201
  - 102 -> 202

This VLAN translation mapping is then reflected in the Interface's detail page, both in the Addressing section and in an inline table below "VLANs".

Screenshot 2024-10-08 at 2 06 45 PM

🔄 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/17707 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 10/8/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `7336-vlan-translation` --- ### 📝 Commits (10+) - [`c60a0f4`](https://github.com/netbox-community/netbox/commit/c60a0f4f56f0cf5f259eb0b4520b84e43741e876) 16136 remove Django Admin (#17619) - [`8cd0a32`](https://github.com/netbox-community/netbox/commit/8cd0a3215ca64ef57cfe550df23c73024feb9334) 16783 Add status field to InventoryItem (#17627) - [`2c68aca`](https://github.com/netbox-community/netbox/commit/2c68aca344e64a2d6dbd8491b3c2eea759776b4c) 17195 Add color to PowerOutlet (#17623) - [`1969f0d`](https://github.com/netbox-community/netbox/commit/1969f0dc71f7c5fe75d0db54bd47b828b120fddd) fix migrations - [`aaa166a`](https://github.com/netbox-community/netbox/commit/aaa166a3b94936f348a4da49177e4901ed9a1d86) VLANTranslationPolicy and VLANTranslationRule models and all associated UI classes - [`f853279`](https://github.com/netbox-community/netbox/commit/f853279f97a96446ad86c438f61ad1accec781f2) Change VLANTranslationPolicy to a PrimaryModel and make name unique - [`3f469b0`](https://github.com/netbox-community/netbox/commit/3f469b0b0a690dfc9b2a03f95d8cea5ea846e005) 17476 Upgrade to Django 5.1 (#17620) - [`ed1327e`](https://github.com/netbox-community/netbox/commit/ed1327eeb729e0cf4805698aef74df64cf7534de) 16546 define get_absolute_url method in NetBoxModel (#17693) - [`e06262e`](https://github.com/netbox-community/netbox/commit/e06262ec128707674584b3e8902222c6f3513042) Add serializer classes to InterfaceSerializer - [`bc597c3`](https://github.com/netbox-community/netbox/commit/bc597c3c5d038770f152d3c343b844e3f3996d92) Closes #17472: Deprecate the staged changes API ### 📊 Changes **115 files changed** (+1185 additions, -501 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/miscellaneous.md` (+0 -8) 📝 `docs/models/circuits/circuit.md` (+6 -0) 📝 `docs/models/dcim/inventoryitem.md` (+4 -0) 📝 `docs/models/dcim/poweroutlet.md` (+4 -0) 📝 `docs/models/extras/branch.md` (+3 -0) 📝 `docs/models/extras/stagedchange.md` (+3 -0) 📝 `docs/plugins/development/staged-changes.md` (+2 -2) 📝 `netbox/circuits/api/serializers_/circuits.py` (+3 -1) 📝 `netbox/circuits/filtersets.py` (+1 -1) 📝 `netbox/circuits/forms/bulk_edit.py` (+13 -0) 📝 `netbox/circuits/forms/bulk_import.py` (+8 -1) 📝 `netbox/circuits/forms/filtersets.py` (+12 -1) 📝 `netbox/circuits/forms/model_forms.py` (+13 -3) ➕ `netbox/circuits/migrations/0045_circuit_distance.py` (+28 -0) 📝 `netbox/circuits/models/circuits.py` (+2 -10) 📝 `netbox/circuits/models/providers.py` (+0 -9) 📝 `netbox/circuits/tables/circuits.py` (+1 -0) 📝 `netbox/circuits/tests/test_filtersets.py` (+12 -3) 📝 `netbox/core/models/data.py` (+0 -3) 📝 `netbox/dcim/api/serializers_/device_components.py` (+6 -4) _...and 80 more files_ </details> ### 📄 Description ### Fixes: #7336 Adds `VLANTranslationPolicy` and `VLANTranslationRule` models and all associated UI visualization classes. Provides the ability to associate a VLAN translation policy and all its associated translation rules with a given interface, e.g. ``` Interface 1: Policy 1: - 100 -> 200 - 101 -> 201 - 102 -> 202 ``` This VLAN translation mapping is then reflected in the Interface's detail page, both in the Addressing section and in an inline table below "VLANs". <img width="1069" alt="Screenshot 2024-10-08 at 2 06 45 PM" src="https://github.com/user-attachments/assets/2965ae8e-37fa-49f3-9fc1-370b60ed0842"> --- <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:20:22 +01:00
adam closed this issue 2025-12-30 00:20:22 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15167