add drop down virtual machine memory size value #7726

Closed
opened 2025-12-29 20:27:32 +01:00 by adam · 3 comments
Owner

Originally created by @andrewm659 on GitHub (Mar 7, 2023).

NetBox version

3.4.5

Feature type

Change to existing functionality

Proposed functionality

When adding a virtual machine change the memory from a input box to a drop down to allow the size of the ram to be MB/GB/TB/PB and ZB maybe?

Use case

Would make entering in mcahines manually a bit easier than having to remember the full numerical output of memory in Kilobytes.

Database changes

No response

External dependencies

No response

Originally created by @andrewm659 on GitHub (Mar 7, 2023). ### NetBox version 3.4.5 ### Feature type Change to existing functionality ### Proposed functionality When adding a virtual machine change the memory from a input box to a drop down to allow the size of the ram to be MB/GB/TB/PB and ZB maybe? ### Use case Would make entering in mcahines manually a bit easier than having to remember the full numerical output of memory in Kilobytes. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 20:27:32 +01:00
adam closed this issue 2025-12-29 20:27:32 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 7, 2023):

This seems like an alternative to #8347, which proposes the ability to specify the unit in text (e.g. 8gb) as opposed to using a separate dropdown to select the unit. IMO either approach is valid.

There's a similar pattern specifying device type weights, where the user specifies a numeric value and selects the appropriate unit (e.g. kilograms or pounds), however in that case it's necessary to have a separate selector as we store the unit itself in the database.

@jeremystretch commented on GitHub (Mar 7, 2023): This seems like an alternative to #8347, which proposes the ability to specify the unit in text (e.g. `8gb`) as opposed to using a separate dropdown to select the unit. IMO either approach is valid. There's a similar pattern specifying device type weights, where the user specifies a numeric value and selects the appropriate unit (e.g. kilograms or pounds), however in that case it's necessary to have a separate selector as we store the unit itself in the database.
Author
Owner

@andrewm659 commented on GitHub (Mar 7, 2023):

Either way works for me.

@andrewm659 commented on GitHub (Mar 7, 2023): Either way works for me.
Author
Owner

@jeremystretch commented on GitHub (Mar 7, 2023):

Ok, I'm going to close this as I see a separate dropdown was also mentioned as a potential solution under #8347. Please feel free to add any additional comments to that FR.

@jeremystretch commented on GitHub (Mar 7, 2023): Ok, I'm going to close this as I see a separate dropdown was also mentioned as a potential solution under #8347. Please feel free to add any additional comments to that FR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7726