Skip to content

Two ID columns in VLAN table #7802

@rhyser9

Description

@rhyser9

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.

class VLANTable(BaseTable):
pk = ToggleColumn()
vid = tables.TemplateColumn(
template_code=VLAN_LINK,
verbose_name='ID'
)

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions