FIELD_CHOICES ipam.IPAddress #8476

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

Originally created by @ffslcschools on GitHub (Aug 16, 2023).

NetBox version

3.5.2

Python version

3.9

Steps to Reproduce

edit /opt/netbox-3.5.2/netbox/netbox/configuration.py
add additional field choices to FIELD_CHOICES
'ipam.IPAddress.status+': (
('free','Free','teal')
)
restart netbox.service
New field added shows as the second letter in each word so in the above example I am seeing options for r, r, e. However, if I add a second field both option show correct as DHCPFree and Free.
'ipam.IPAddress.status+': (
('dhcpfree','DHCPFree','orange'),
('free','Free','teal')
)
I do not have this issue in the virtualization.VirtualMachine name space.

Expected Behavior

New field choices should show with the proper names out lined in the configuration file.

Observed Behavior

I have tried changing the words for the new fields and it seems to always be the second letter in each word that gets added as a new field choice. if there is a second field choice added it behaves as expected.

Originally created by @ffslcschools on GitHub (Aug 16, 2023). ### NetBox version 3.5.2 ### Python version 3.9 ### Steps to Reproduce edit /opt/netbox-3.5.2/netbox/netbox/configuration.py add additional field choices to FIELD_CHOICES 'ipam.IPAddress.status+': ( ('free','Free','teal') ) restart netbox.service New field added shows as the second letter in each word so in the above example I am seeing options for r, r, e. However, if I add a second field both option show correct as DHCPFree and Free. 'ipam.IPAddress.status+': ( ('dhcpfree','DHCPFree','orange'), ('free','Free','teal') ) I do not have this issue in the virtualization.VirtualMachine name space. ### Expected Behavior New field choices should show with the proper names out lined in the configuration file. ### Observed Behavior I have tried changing the words for the new fields and it seems to always be the second letter in each word that gets added as a new field choice. if there is a second field choice added it behaves as expected.
adam closed this issue 2025-12-29 20:37:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8476