[PR #2681] [CLOSED] Make VLANMembersView only show distinct interfaces #12422

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2681
Author: @Limb
Created: 12/12/2018
Status: Closed

Base: developHead: vlanmembers_distinct


📝 Commits (1)

  • e6358d9 Make VLANMembersView only show distinct interfaces

📊 Changes

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

View changed files

📝 netbox/ipam/views.py (+1 -1)

📄 Description

This prevents duplication of interfaces in the VLAN Members Table.

Fixes:

Fixes #2663

I believe the current query ends up selecting some interfaces multiple times, and because the query has a LIMIT of the number of VLAN members it will stop before all interfaces are selected. By making the request use distinct, a interface will not show up multiple times in the returned data.


🔄 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/2681 **Author:** [@Limb](https://github.com/Limb) **Created:** 12/12/2018 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `vlanmembers_distinct` --- ### 📝 Commits (1) - [`e6358d9`](https://github.com/netbox-community/netbox/commit/e6358d921858c3958ecd0ce9eb9db20a6423d81c) Make VLANMembersView only show distinct interfaces ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/views.py` (+1 -1) </details> ### 📄 Description This prevents duplication of interfaces in the VLAN Members Table. <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: Fixes #2663 I believe the current query ends up selecting some interfaces multiple times, and because the query has a LIMIT of the number of VLAN members it will stop before all interfaces are selected. By making the request use distinct, a interface will not show up multiple times in the returned data. --- <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-29 22:21:25 +01:00
adam closed this issue 2025-12-29 22: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#12422