When creating/editing a Virtual Chassis, unnamed devices need more context #1552

Closed
opened 2025-12-29 16:32:53 +01:00 by adam · 5 comments
Owner

Originally created by @lampwins on GitHub (Feb 14, 2018).

Issue type

[ ] Feature request
[ x ] Bug report
[ ] Documentation

Environment

  • Python version: 2.7
  • NetBox version: develop-2.3

Description

When creating/editing a Virtual Chassis with unnamed member devices, these devices need more context. Currently the string method on the Device model falls back to the device type name when the device has no name. This causes a problem when creating/editing a Virtual Chassis whith multiple unnamed devices. Such devices need more context; I suggest including their serial numbers.

screen shot 2018-02-13 at 7 39 29 pm
Originally created by @lampwins on GitHub (Feb 14, 2018). <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for your issue below by placing an x between the brackets. For assistance with installation issues, or for any other issues other than those listed below, please raise your topic for discussion on our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please note that issues which do not fall under any of the below categories will be closed. Due to an excessive backlog of feature requests, we are not currently accepting any proposals which extend NetBox's feature scope. Do not prepend any sort of tag to your issue's title. An administrator will review your issue and assign labels as appropriate. ---> ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [ x ] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) If you are submitting a bug report and have made any changes to the code base, please first validate that your bug can be recreated while running an official release. --> ### Environment * Python version: 2.7 * NetBox version: develop-2.3 <!-- BUG REPORTS must include: * A list of the steps needed for someone else to reproduce the bug * A description of the expected and observed behavior * Any relevant error messages (screenshots may also help) FEATURE REQUESTS must include: * A detailed description of the proposed functionality * A use case for the new feature * A rough description of any necessary changes to the database schema * Any relevant third-party libraries which would be needed --> ### Description When creating/editing a Virtual Chassis with unnamed member devices, these devices need more context. Currently the string method on the Device model falls back to the device type name when the device has no name. This causes a problem when creating/editing a Virtual Chassis whith multiple unnamed devices. Such devices need more context; I suggest including their serial numbers. <img width="802" alt="screen shot 2018-02-13 at 7 39 29 pm" src="https://user-images.githubusercontent.com/1297132/36182153-365beeb6-10f6-11e8-8051-d8f71994c043.png">
adam added the type: bugstatus: accepted labels 2025-12-29 16:32:53 +01:00
adam closed this issue 2025-12-29 16:32:54 +01:00
Author
Owner

@jeremystretch commented on GitHub (Feb 14, 2018):

Hmm, devices might not have a serial number set. Maybe we could assign each device a letter (rather than a digit, to avoid confusing it with stack position) to uniquely identify each device in the stack, just for the purposes of this form.

@jeremystretch commented on GitHub (Feb 14, 2018): Hmm, devices might not have a serial number set. Maybe we could assign each device a letter (rather than a digit, to avoid confusing it with stack position) to uniquely identify each device in the stack, just for the purposes of this form.
Author
Owner

@lampwins commented on GitHub (Feb 14, 2018):

When would the letter be set? I am thinking of this from the standpoint of, I have created a couple of new unnamed devices but now I can't differentiate between them in this form.

@lampwins commented on GitHub (Feb 14, 2018): When would the letter be set? I am thinking of this from the standpoint of, I have created a couple of new unnamed devices but now I can't differentiate between them in this form.
Author
Owner

@jeremystretch commented on GitHub (Feb 14, 2018):

It would be the first column in the table, and included next to each device in the selection list.

It would probably make more sense to just include the unique ID (primary key) that each device already has, like this:

screenshot from 2018-02-14 11-04-34

@jeremystretch commented on GitHub (Feb 14, 2018): It would be the first column in the table, and included next to each device in the selection list. It would probably make more sense to just include the unique ID (primary key) that each device already has, like this: ![screenshot from 2018-02-14 11-04-34](https://user-images.githubusercontent.com/13487278/36214241-f5913054-1176-11e8-9f1a-44dbdfff24bf.png)
Author
Owner

@jeremystretch commented on GitHub (Feb 14, 2018):

Adding serial and rack/unit columns as well.

@jeremystretch commented on GitHub (Feb 14, 2018): Adding serial and rack/unit columns as well.
Author
Owner

@jeremystretch commented on GitHub (Feb 14, 2018):

Closed in e653f35

@jeremystretch commented on GitHub (Feb 14, 2018): Closed in e653f35
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1552