Increase custom field integer ranges (from 32bit signed int to 64bit signed int) #8827

Closed
opened 2025-12-29 20:41:47 +01:00 by adam · 0 comments
Owner

Originally created by @jwbensley on GitHub (Nov 10, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.5.9

Feature type

Change to existing functionality

Proposed functionality

Allow values in the range supported by a 32 u-int, when creating a custom fields which are of type "integer".

Currently, the maximum value I can put in an "integer" custom field is for a signed 32bit int.

Maybe the solution is to bump the field to a be a 64-bit signed int, if you want to support negative numbers too?

Example:

Bildschirmfoto vom 2023-11-10 10-07-35

Use case

I want to store a BGP ASN number, which is a 32bit u-int.
I want to store a BGP Local Pref, which is a 32bit u-int.

Database changes

I assume some sort of schema change is required but I don't know, sorry.

External dependencies

Sorry, I don't know of any.

Originally created by @jwbensley on GitHub (Nov 10, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.5.9 ### Feature type Change to existing functionality ### Proposed functionality Allow values in the range supported by a 32 u-int, when creating a custom fields which are of type "integer". Currently, the maximum value I can put in an "integer" custom field is for a signed 32bit int. Maybe the solution is to bump the field to a be a 64-bit signed int, if you want to support negative numbers too? Example: ![Bildschirmfoto vom 2023-11-10 10-07-35](https://github.com/netbox-community/netbox/assets/1025875/818e74d8-e281-4361-ae8c-d22d36a384fd) ### Use case I want to store a BGP ASN number, which is a 32bit u-int. I want to store a BGP Local Pref, which is a 32bit u-int. ### Database changes I assume some sort of schema change is required but I don't know, sorry. ### External dependencies Sorry, I don't know of any.
adam added the status: acceptedtype: feature labels 2025-12-29 20:41:47 +01:00
adam closed this issue 2025-12-29 20:41:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8827