Skip to content

Add VID as an object #20836

@WINthenriksn

Description

@WINthenriksn

NetBox version

v4.4.2

Feature type

Change to existing functionality

Proposed functionality (Edited)

I would like to be able to select which attribute is returned when matching an object with custom fields. Currently when I match on a VLAN object the name attribute is returned with the VID in parentheses behind it. I would love to have the option to return only the VID without including the name.

Use case

I have a handful of custom fields that I use to match on multiple VLANs. We have a number of circuits that utilize multiple VLANs and in order to track those I have created a custom field utilizing the "Object" type in order to link existing VLANs to the circuit. Our VLAN naming structure is longer than the simple VLAN ID and for ease of display and reporting purposes it would be ideal to display only the VID for some of these purposes.

Another use potential use case: In circuit terminations I can select a Site for one of my termination points, this returns the Site name. I would love to be able to also return the site address without having to drill down into the linked object.

Database changes

I do not believe that any database schema changes would be necessary for this, but admittedly I do not have strong database skills.

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxpending closureRequires immediate attention to avoid being closed for inactivitystatus: revisions neededThis issue requires additional information to be actionabletype: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions