Two ID columns in VLAN table #5647

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

Originally created by @rhyser9 on GitHub (Nov 11, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.0.9

Python version

3.9

Steps to Reproduce

  1. Create a new vlan
  2. Open the vlans table (.../ipam/vlans/)
  3. Click "Configure Table" and add the "ID" column from under "Available Columns"
  4. Export the VLAN table as a CSV file

Expected Behavior

image

The vid column should be distinguished from the netbox object ID column. For example, call it "VLAN ID".

Observed Behavior

image
image

Both the VLAN ID and the Netbox object ID have the same "ID" header, both in the table and in the CSV export. This causes an issue with anything consuming the exported CSV file, as the ID header is now ambiguous.

This bug was introduced in v3.0.9 via FR #6930 / PR #7673.

f5356b84f6/netbox/ipam/tables/vlans.py (L92-L97)

Originally created by @rhyser9 on GitHub (Nov 11, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.0.9 ### Python version 3.9 ### Steps to Reproduce 1. Create a new vlan 2. Open the vlans table (.../ipam/vlans/) 3. Click "Configure Table" and add the "ID" column from under "Available Columns" 4. Export the VLAN table as a CSV file ### Expected Behavior ![image](https://user-images.githubusercontent.com/3577982/141238448-7763a662-a5cf-4eea-8156-8db8ff0f1129.png) The vid column should be distinguished from the netbox object ID column. For example, call it "VLAN ID". ### Observed Behavior ![image](https://user-images.githubusercontent.com/3577982/141238398-7f24b6e6-2542-41c6-b27c-dfb040582cf7.png) ![image](https://user-images.githubusercontent.com/3577982/141239105-ee461e9d-98cd-4391-9c21-63741d4dfc41.png) Both the VLAN ID and the Netbox object ID have the same "ID" header, both in the table and in the CSV export. This causes an issue with anything consuming the exported CSV file, as the ID header is now ambiguous. This bug was introduced in v3.0.9 via FR #6930 / PR #7673. https://github.com/netbox-community/netbox/blob/f5356b84f6a546a7ffcca495e5c095f5c9e3f1f5/netbox/ipam/tables/vlans.py#L92-L97
adam added the type: bugstatus: accepted labels 2025-12-29 19:30:39 +01:00
adam closed this issue 2025-12-29 19:30:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5647